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
3ccd2a48
Kaydet (Commit)
3ccd2a48
authored
Tem 20, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cache calls to size
Change-Id: I7bb009e1250111f1c05c421ecfb5b62a75ab88d0
üst
7c107068
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
column2.cxx
sc/source/core/data/column2.cxx
+6
-5
No files found.
sc/source/core/data/column2.cxx
Dosyayı görüntüle @
3ccd2a48
...
...
@@ -1317,22 +1317,23 @@ void ScColumn::FindDataAreaPos(SCROW& rRow, long nMovY) const
if
(
bThere
&&
maItems
[
nIndex
].
pCell
->
IsBlank
())
bThere
=
false
;
size_t
nLastIndex
=
maItems
.
size
()
-
1
;
if
(
bThere
)
{
SCROW
nLast
=
rRow
;
SCSIZE
nOldIndex
=
nIndex
;
if
(
bForward
)
{
if
(
nIndex
<
maItems
.
size
()
-
1
)
if
(
nIndex
<
nLastIndex
)
{
++
nIndex
;
while
(
nIndex
<
maItems
.
size
()
-
1
&&
maItems
[
nIndex
].
nRow
==
nLast
+
1
while
(
nIndex
<
nLastIndex
&&
maItems
[
nIndex
].
nRow
==
nLast
+
1
&&
!
maItems
[
nIndex
].
pCell
->
IsBlank
())
{
++
nIndex
;
++
nLast
;
}
if
(
nIndex
==
maItems
.
size
()
-
1
)
if
(
nIndex
==
nLastIndex
)
if
(
maItems
[
nIndex
].
nRow
==
nLast
+
1
&&
!
maItems
[
nIndex
].
pCell
->
IsBlank
())
++
nLast
;
}
...
...
@@ -1366,9 +1367,9 @@ void ScColumn::FindDataAreaPos(SCROW& rRow, long nMovY) const
{
if
(
bForward
)
{
while
(
nIndex
<
maItems
.
size
()
&&
maItems
[
nIndex
].
pCell
->
IsBlank
())
while
(
nIndex
<
nLastIndex
+
1
&&
maItems
[
nIndex
].
pCell
->
IsBlank
())
++
nIndex
;
if
(
nIndex
<
maItems
.
size
()
)
if
(
nIndex
<
nLastIndex
+
1
)
rRow
=
maItems
[
nIndex
].
nRow
;
else
rRow
=
MAXROW
;
...
...
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