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
efd6fc5e
Kaydet (Commit)
efd6fc5e
authored
Tem 17, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Unwind this logic and make it easier to read.
Change-Id: Iaf4ccc8949fb823a7bd3329c0164443220573b03
üst
8ab7cbe7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
chgtrack.hxx
sc/inc/chgtrack.hxx
+2
-0
chgtrack.cxx
sc/source/core/tool/chgtrack.cxx
+7
-2
No files found.
sc/inc/chgtrack.hxx
Dosyayı görüntüle @
efd6fc5e
...
@@ -1013,6 +1013,8 @@ class ScChangeTrack : public utl::ConfigurationListener
...
@@ -1013,6 +1013,8 @@ class ScChangeTrack : public utl::ConfigurationListener
// bRecursion == called from reject with table
// bRecursion == called from reject with table
bool
Reject
(
ScChangeAction
*
,
ScChangeActionMap
*
,
bool
bRecursion
);
bool
Reject
(
ScChangeAction
*
,
ScChangeActionMap
*
,
bool
bRecursion
);
bool
IsLastAction
(
sal_uLong
nNum
)
const
;
void
ClearMsgQueue
();
void
ClearMsgQueue
();
virtual
void
ConfigurationChanged
(
utl
::
ConfigurationBroadcaster
*
,
sal_uInt32
)
SAL_OVERRIDE
;
virtual
void
ConfigurationChanged
(
utl
::
ConfigurationBroadcaster
*
,
sal_uInt32
)
SAL_OVERRIDE
;
...
...
sc/source/core/tool/chgtrack.cxx
Dosyayı görüntüle @
efd6fc5e
...
@@ -3161,8 +3161,8 @@ void ScChangeTrack::Undo( sal_uLong nStartAction, sal_uLong nEndAction, bool bMe
...
@@ -3161,8 +3161,8 @@ void ScChangeTrack::Undo( sal_uLong nStartAction, sal_uLong nEndAction, bool bMe
for
(
sal_uLong
j
=
nEndAction
;
j
>=
nStartAction
;
--
j
)
for
(
sal_uLong
j
=
nEndAction
;
j
>=
nStartAction
;
--
j
)
{
// Traverse backwards to recycle nActionMax and for faster access via pLast
{
// Traverse backwards to recycle nActionMax and for faster access via pLast
// Deletes are in right order
// Deletes are in right order
ScChangeAction
*
pAct
=
(
(
j
==
nActionMax
&&
pLast
&&
ScChangeAction
*
pAct
=
IsLastAction
(
j
)
?
pLast
:
GetAction
(
j
);
pLast
->
GetActionNumber
()
==
j
)
?
pLast
:
GetAction
(
j
)
);
if
(
pAct
)
if
(
pAct
)
{
{
if
(
pAct
->
IsDeleteType
()
)
if
(
pAct
->
IsDeleteType
()
)
...
@@ -4409,6 +4409,11 @@ bool ScChangeTrack::Reject(
...
@@ -4409,6 +4409,11 @@ bool ScChangeTrack::Reject(
return
bRejected
;
return
bRejected
;
}
}
bool
ScChangeTrack
::
IsLastAction
(
sal_uLong
nNum
)
const
{
return
nNum
==
nActionMax
&&
pLast
&&
pLast
->
GetActionNumber
()
==
nNum
;
}
sal_uLong
ScChangeTrack
::
AddLoadedGenerated
(
sal_uLong
ScChangeTrack
::
AddLoadedGenerated
(
const
ScCellValue
&
rNewCell
,
const
ScBigRange
&
aBigRange
,
const
OUString
&
sNewValue
)
const
ScCellValue
&
rNewCell
,
const
ScBigRange
&
aBigRange
,
const
OUString
&
sNewValue
)
{
{
...
...
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