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
ee636db4
Kaydet (Commit)
ee636db4
authored
May 11, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1169835 Improper use of negative value
Change-Id: I1857f5c712f9407c8a4b69f30044e8bb444afad2
üst
f3e519d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
formula.cxx
formula/source/ui/dlg/formula.cxx
+3
-3
No files found.
formula/source/ui/dlg/formula.cxx
Dosyayı görüntüle @
ee636db4
...
...
@@ -489,7 +489,7 @@ sal_Int32 FormulaDlg_Impl::GetFunctionPos(sal_Int32 nPos)
const
sal_Int32
n1
=
nTokPos
<
0
?
-
1
:
aFormString
.
indexOf
(
sep
,
nTokPos
);
const
sal_Int32
n2
=
nTokPos
<
0
?
-
1
:
aFormString
.
indexOf
(
')'
,
nTokPos
);
sal_Int32
nXXX
=
nTokPos
;
if
(
n1
<
n2
)
if
(
n1
<
n2
&&
n1
!=
-
1
)
{
nTokPos
=
n1
;
}
...
...
@@ -501,8 +501,8 @@ sal_Int32 FormulaDlg_Impl::GetFunctionPos(sal_Int32 nPos)
{
aArgs
[
0
]
=
*
pNextToken
;
const
OUString
a2String
=
xParser
->
printFormula
(
aArgs
,
aRefPos
);
const
sal_Int32
n3
=
aFormString
.
indexOf
(
a2String
,
nXXX
);
if
(
n3
<
nTokPos
)
const
sal_Int32
n3
=
nXXX
<
0
?
-
1
:
aFormString
.
indexOf
(
a2String
,
nXXX
);
if
(
n3
<
nTokPos
&&
n3
!=
-
1
)
nTokPos
=
n3
;
}
}
...
...
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