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
87ad1705
Kaydet (Commit)
87ad1705
authored
Ara 01, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add DebugCalculationEntry::mnGroup
Change-Id: Ic8b6c661be7570479c271d3ce0aa750e13724fc7
üst
6d7b984e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
5 deletions
+26
-5
formulacell.cxx
sc/source/core/data/formulacell.cxx
+26
-5
No files found.
sc/source/core/data/formulacell.cxx
Dosyayı görüntüle @
87ad1705
...
...
@@ -78,11 +78,13 @@ struct DebugCalculationEntry
ScAddress
maPos
;
OUString
maResult
;
const
ScDocument
*
mpDoc
;
sal_uInt32
mnGroup
;
sal_uInt16
mnRecursion
;
DebugCalculationEntry
(
const
ScAddress
&
rPos
,
ScDocument
*
pDoc
)
:
DebugCalculationEntry
(
const
ScAddress
&
rPos
,
ScDocument
*
pDoc
,
sal_uInt32
nGroup
)
:
maPos
(
rPos
),
mpDoc
(
pDoc
),
mnGroup
(
nGroup
),
mnRecursion
(
pDoc
->
GetRecursionHelper
().
GetRecursionCount
())
{
}
...
...
@@ -99,12 +101,14 @@ static struct DebugCalculation
std
::
vector
<
DebugCalculationEntry
>
mvPos
;
std
::
vector
<
DebugCalculationEntry
>
mvResults
;
ScAddress
maTrigger
;
sal_uInt32
mnGroup
;
bool
mbActive
;
bool
mbSwitchOff
;
bool
mbPrint
;
bool
mbPrintResults
;
DebugCalculation
()
:
mbActive
(
bDebugCalculationActive
),
mbSwitchOff
(
false
),
mbPrint
(
true
),
mbPrintResults
(
false
)
{}
DebugCalculation
()
:
mnGroup
(
0
),
mbActive
(
bDebugCalculationActive
),
mbSwitchOff
(
false
),
mbPrint
(
true
),
mbPrintResults
(
false
)
{}
/** Print chain in encountered dependency order. */
void
print
()
const
...
...
@@ -112,7 +116,7 @@ static struct DebugCalculation
for
(
auto
const
&
it
:
mvPos
)
{
OUString
aStr
(
it
.
maPos
.
Format
(
SCA_VALID
|
SCA_TAB_3D
,
it
.
mpDoc
)
+
" ["
+
OUString
::
number
(
it
.
mnRecursion
)
+
"]"
);
" ["
+
OUString
::
number
(
it
.
mnRecursion
)
+
"
,"
+
OUString
::
number
(
it
.
mnGroup
)
+
"
]"
);
fprintf
(
stderr
,
"%s -> "
,
aStr
.
toUtf8
().
getStr
());
}
fprintf
(
stderr
,
"%s"
,
"END
\n
"
);
...
...
@@ -148,6 +152,16 @@ static struct DebugCalculation
mvPos
.
back
().
maResult
=
"Err:"
+
OUString
::
number
(
nErr
);
}
void
enterGroup
()
{
++
mnGroup
;
}
void
leaveGroup
()
{
--
mnGroup
;
}
}
aDC
;
struct
DebugCalculationStacker
...
...
@@ -158,7 +172,7 @@ struct DebugCalculationStacker
aDC
.
mbActive
=
aDC
.
mbSwitchOff
=
true
;
if
(
aDC
.
mbActive
)
{
aDC
.
mvPos
.
push_back
(
DebugCalculationEntry
(
rPos
,
pDoc
));
aDC
.
mvPos
.
push_back
(
DebugCalculationEntry
(
rPos
,
pDoc
,
aDC
.
mnGroup
));
aDC
.
mbPrint
=
true
;
}
}
...
...
@@ -1537,7 +1551,14 @@ void ScFormulaCell::Interpret()
}
else
{
if
(
!
InterpretFormulaGroup
()
)
#if DEBUG_CALCULATION
aDC
.
enterGroup
();
#endif
bool
bGroupInterpreted
=
InterpretFormulaGroup
();
#if DEBUG_CALCULATION
aDC
.
leaveGroup
();
#endif
if
(
!
bGroupInterpreted
)
InterpretTail
(
SCITP_NORMAL
);
}
...
...
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