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
e11fe188
Kaydet (Commit)
e11fe188
authored
Ock 25, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1266474 Dereference null return value
Change-Id: I240be73629a26a7067bfde5d2b662315a3259d1f
üst
475461a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
documen4.cxx
sc/source/core/data/documen4.cxx
+6
-2
No files found.
sc/source/core/data/documen4.cxx
Dosyayı görüntüle @
e11fe188
...
@@ -82,14 +82,19 @@ bool ScDocument::Solver(SCCOL nFCol, SCROW nFRow, SCTAB nFTab,
...
@@ -82,14 +82,19 @@ bool ScDocument::Solver(SCCOL nFCol, SCROW nFRow, SCTAB nFTab,
GetCellType
(
nVCol
,
nVRow
,
nVTab
,
eVType
);
GetCellType
(
nVCol
,
nVRow
,
nVTab
,
eVType
);
// #i108005# convert target value to number using default format,
// #i108005# convert target value to number using default format,
// as previously done in ScInterpreter::GetDouble
// as previously done in ScInterpreter::GetDouble
ScFormulaCell
*
pFormula
=
NULL
;
double
fTargetVal
=
0.0
;
double
fTargetVal
=
0.0
;
sal_uInt32
nFIndex
=
0
;
sal_uInt32
nFIndex
=
0
;
if
(
eFType
==
CELLTYPE_FORMULA
&&
eVType
==
CELLTYPE_VALUE
&&
if
(
eFType
==
CELLTYPE_FORMULA
&&
eVType
==
CELLTYPE_VALUE
&&
GetFormatTable
()
->
IsNumberFormat
(
sValStr
,
nFIndex
,
fTargetVal
)
)
GetFormatTable
()
->
IsNumberFormat
(
sValStr
,
nFIndex
,
fTargetVal
)
)
{
ScAddress
aFormulaAdr
(
nFCol
,
nFRow
,
nFTab
);
pFormula
=
GetFormulaCell
(
aFormulaAdr
);
}
if
(
pFormula
)
{
{
bool
bDoneIteration
=
false
;
bool
bDoneIteration
=
false
;
ScAddress
aValueAdr
(
nVCol
,
nVRow
,
nVTab
);
ScAddress
aValueAdr
(
nVCol
,
nVRow
,
nVTab
);
ScAddress
aFormulaAdr
(
nFCol
,
nFRow
,
nFTab
);
double
*
pVCell
=
GetValueCell
(
aValueAdr
);
double
*
pVCell
=
GetValueCell
(
aValueAdr
);
ScRange
aVRange
(
aValueAdr
,
aValueAdr
);
// for SetDirty
ScRange
aVRange
(
aValueAdr
,
aValueAdr
);
// for SetDirty
...
@@ -104,7 +109,6 @@ bool ScDocument::Solver(SCCOL nFCol, SCROW nFRow, SCTAB nFTab,
...
@@ -104,7 +109,6 @@ bool ScDocument::Solver(SCCOL nFCol, SCROW nFRow, SCTAB nFTab,
double
fBestF
,
fFPrev
;
double
fBestF
,
fFPrev
;
fBestX
=
fXPrev
=
fSaveVal
;
fBestX
=
fXPrev
=
fSaveVal
;
ScFormulaCell
*
pFormula
=
GetFormulaCell
(
aFormulaAdr
);
pFormula
->
Interpret
();
pFormula
->
Interpret
();
bool
bError
=
(
pFormula
->
GetErrCode
()
!=
0
);
bool
bError
=
(
pFormula
->
GetErrCode
()
!=
0
);
// bError always corresponds with fF
// bError always corresponds with fF
...
...
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