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
6a01844a
Kaydet (Commit)
6a01844a
authored
Tem 06, 2015
tarafından
Benjamin Ni
Kaydeden (comit)
Markus Mohrhard
Tem 06, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#92547 - incorrect input values shown in formula wizard
Change-Id: I55dd98b1613376c8e1c83af8ffdc66a58e022cb1
üst
1745af7d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
1 deletion
+13
-1
simpleformulacalc.hxx
sc/inc/simpleformulacalc.hxx
+1
-0
ucalc.cxx
sc/qa/unit/ucalc.cxx
+6
-0
simpleformulacalc.cxx
sc/source/core/data/simpleformulacalc.cxx
+5
-0
formula.cxx
sc/source/ui/formdlg/formula.cxx
+1
-1
No files found.
sc/inc/simpleformulacalc.hxx
Dosyayı görüntüle @
6a01844a
...
@@ -41,6 +41,7 @@ public:
...
@@ -41,6 +41,7 @@ public:
void
Calculate
();
void
Calculate
();
bool
IsValue
();
bool
IsValue
();
bool
IsMatrix
();
sal_uInt16
GetErrCode
();
sal_uInt16
GetErrCode
();
double
GetValue
();
double
GetValue
();
svl
::
SharedString
GetString
();
svl
::
SharedString
GetString
();
...
...
sc/qa/unit/ucalc.cxx
Dosyayı görüntüle @
6a01844a
...
@@ -6483,6 +6483,12 @@ void Test::testFormulaWizardSubformula()
...
@@ -6483,6 +6483,12 @@ void Test::testFormulaWizardSubformula()
if ( aFCell.GetErrCode() == 0 )
if ( aFCell.GetErrCode() == 0 )
CPPUNIT_ASSERT_EQUAL( OUString("{1, #DIV/0!, #NAME!}"), aFCell.GetString().getString() );
CPPUNIT_ASSERT_EQUAL( OUString("{1, #DIV/0!, #NAME!}"), aFCell.GetString().getString() );
m_pDoc->SetString(ScAddress(0,1,0), "=NA()"); // B0
m_pDoc->SetString(ScAddress(1,1,0), "2"); // B1
m_pDoc->SetString(ScAddress(2,1,0), "=1+2"); // B2
if ( aFCell.GetErrCode() == 0 )
CPPUNIT_ASSERT_EQUAL(OUString("{#N/A, 2, 3}"), aFCell.GetString().getString());
m_pDoc->DeleteTab(0);
m_pDoc->DeleteTab(0);
}
}
...
...
sc/source/core/data/simpleformulacalc.cxx
Dosyayı görüntüle @
6a01844a
...
@@ -70,6 +70,11 @@ bool ScSimpleFormulaCalculator::IsValue()
...
@@ -70,6 +70,11 @@ bool ScSimpleFormulaCalculator::IsValue()
return
maResult
.
IsValue
();
return
maResult
.
IsValue
();
}
}
bool
ScSimpleFormulaCalculator
::
IsMatrix
()
{
return
bIsMatrix
;
}
sal_uInt16
ScSimpleFormulaCalculator
::
GetErrCode
()
sal_uInt16
ScSimpleFormulaCalculator
::
GetErrCode
()
{
{
Calculate
();
Calculate
();
...
...
sc/source/ui/formdlg/formula.cxx
Dosyayı görüntüle @
6a01844a
...
@@ -330,7 +330,7 @@ bool ScFormulaDlg::calculateValue( const OUString& rStrExp, OUString& rStrResult
...
@@ -330,7 +330,7 @@ bool ScFormulaDlg::calculateValue( const OUString& rStrExp, OUString& rStrResult
}
}
sal_uInt16
nErrCode
=
pFCell
->
GetErrCode
();
sal_uInt16
nErrCode
=
pFCell
->
GetErrCode
();
if
(
nErrCode
==
0
)
if
(
nErrCode
==
0
||
pFCell
->
IsMatrix
()
)
{
{
SvNumberFormatter
&
aFormatter
=
*
(
pDoc
->
GetFormatTable
());
SvNumberFormatter
&
aFormatter
=
*
(
pDoc
->
GetFormatTable
());
Color
*
pColor
;
Color
*
pColor
;
...
...
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