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
70ba0a8d
Kaydet (Commit)
70ba0a8d
authored
May 11, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#736101 Improper use of negative value
Change-Id: I6fec141e19de921128365da7cbd17e0a0bc0b9a9
üst
08fad277
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
cursor.cxx
starmath/source/cursor.cxx
+3
-1
No files found.
starmath/source/cursor.cxx
Dosyayı görüntüle @
70ba0a8d
...
@@ -263,7 +263,9 @@ void SmCursor::Delete(){
...
@@ -263,7 +263,9 @@ void SmCursor::Delete(){
SmStructureNode
*
pLineParent
=
pLine
->
GetParent
();
SmStructureNode
*
pLineParent
=
pLine
->
GetParent
();
//Find line offset in parent
//Find line offset in parent
int
nLineOffset
=
pLineParent
->
IndexOfSubNode
(
pLine
);
int
nLineOffset
=
pLineParent
->
IndexOfSubNode
(
pLine
);
OSL_ENSURE
(
nLineOffset
!=
-
1
,
"pLine must be a child of its parent!"
);
assert
(
nLineOffset
!=
-
1
);
//pLine must be a child of its parent!
if
(
nLineOffset
==
-
1
)
return
;
//Position after delete
//Position after delete
SmCaretPos
PosAfterDelete
;
SmCaretPos
PosAfterDelete
;
...
...
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