Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
157b804b
Kaydet (Commit)
157b804b
authored
Kas 02, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add comments to make it easier to follow this non-obvious code.
Change-Id: Ib3d3e5b57799c22916845899839ddcc9a81e9b98
üst
f978013f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
column.cxx
sc/source/core/data/column.cxx
+4
-2
No files found.
sc/source/core/data/column.cxx
Dosyayı görüntüle @
157b804b
...
...
@@ -1484,6 +1484,7 @@ void ScColumn::MoveTo(SCROW nStartRow, SCROW nEndRow, ScColumn& rCol)
SCSIZE
i
;
Search
(
nStartRow
,
i
);
// i points to start row or position thereafter
SCSIZE
nStartPos
=
i
;
// First, copy the cell instances to the new column.
for
(
;
i
<
maItems
.
size
()
&&
maItems
[
i
].
nRow
<=
nEndRow
;
++
i
)
{
SCROW
nRow
=
maItems
[
i
].
nRow
;
...
...
@@ -1531,15 +1532,16 @@ void ScColumn::MoveTo(SCROW nStartRow, SCROW nEndRow, ScColumn& rCol)
nStartPos
=
(
*
it
).
first
;
nStopPos
=
(
*
it
).
second
;
for
(
i
=
nStartPos
;
i
<
nStopPos
;
++
i
)
maItems
[
i
].
pCell
=
pNoteCell
;
maItems
[
i
].
pCell
=
pNoteCell
;
// Assign the dumpy cell instance to all slots.
for
(
i
=
nStartPos
;
i
<
nStopPos
;
++
i
)
{
rAddress
.
SetRow
(
maItems
[
i
].
nRow
);
pDocument
->
AreaBroadcast
(
aHint
);
}
// Erase the slots containing pointers to the dummy cell instance.
maItems
.
erase
(
maItems
.
begin
()
+
nStartPos
,
maItems
.
begin
()
+
nStopPos
);
}
pNoteCell
->
Delete
();
pNoteCell
->
Delete
();
// Delete the dummy cell instance.
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment