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
625a2f42
Kaydet (Commit)
625a2f42
authored
Kas 30, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add DebugCalculation::storeResultError()
Change-Id: I26ab76c5d53d606ddb141c9dadb534b4739a6c64
üst
568029bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
formulacell.cxx
sc/source/core/data/formulacell.cxx
+11
-3
No files found.
sc/source/core/data/formulacell.cxx
Dosyayı görüntüle @
625a2f42
...
...
@@ -129,13 +129,19 @@ static struct DebugCalculation
void
storeResult
(
const
svl
::
SharedString
&
rStr
)
{
if
(
mbActive
&&
!
mvPos
.
empty
())
mvPos
.
back
().
maResult
=
rStr
.
getString
()
;
mvPos
.
back
().
maResult
=
"
\"
"
+
rStr
.
getString
()
+
"
\"
"
;
}
void
storeResult
(
const
double
&
fVal
)
{
if
(
mbActive
&&
!
mvPos
.
empty
())
storeResult
(
rtl
::
math
::
doubleToUString
(
fVal
,
rtl_math_StringFormat_G
,
2
,
'.'
,
true
));
mvPos
.
back
().
maResult
=
rtl
::
math
::
doubleToUString
(
fVal
,
rtl_math_StringFormat_G
,
2
,
'.'
,
true
);
}
void
storeResultError
(
const
sal_uInt16
&
nErr
)
{
if
(
mbActive
&&
!
mvPos
.
empty
())
mvPos
.
back
().
maResult
=
"Err:"
+
OUString
::
number
(
nErr
);
}
}
aDC
;
...
...
@@ -1714,7 +1720,9 @@ void ScFormulaCell::Interpret()
}
#if DEBUG_CALCULATION
if
(
aResult
.
IsValue
())
if
(
sal_uInt16
nErr
=
aResult
.
GetResultError
())
aDC
.
storeResultError
(
nErr
);
else
if
(
aResult
.
IsValue
())
aDC
.
storeResult
(
aResult
.
GetDouble
());
else
aDC
.
storeResult
(
aResult
.
GetString
());
...
...
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