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
f36406bf
Kaydet (Commit)
f36406bf
authored
Agu 15, 2016
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
starmath: Avoid assigned but unused value
Change-Id: I3d8ede40e2231e3b88c43b17e353ea962e02acc7
üst
aa21f8ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
cursor.cxx
starmath/source/cursor.cxx
+1
-8
No files found.
starmath/source/cursor.cxx
Dosyayı görüntüle @
f36406bf
...
@@ -296,9 +296,6 @@ void SmCursor::InsertNodes(SmNodeList* pNewNodes){
...
@@ -296,9 +296,6 @@ void SmCursor::InsertNodes(SmNodeList* pNewNodes){
//Begin edit section
//Begin edit section
BeginEdit
();
BeginEdit
();
//Position after insert should be after pNewNode
SmCaretPos
PosAfterInsert
=
SmCaretPos
(
pNewNodes
->
back
(),
1
);
//Get the current position
//Get the current position
const
SmCaretPos
pos
=
mpPosition
->
CaretPos
;
const
SmCaretPos
pos
=
mpPosition
->
CaretPos
;
...
@@ -324,14 +321,10 @@ void SmCursor::InsertNodes(SmNodeList* pNewNodes){
...
@@ -324,14 +321,10 @@ void SmCursor::InsertNodes(SmNodeList* pNewNodes){
insIt
=
pLineList
->
insert
(
it
,
*
newIt
);
insIt
=
pLineList
->
insert
(
it
,
*
newIt
);
if
(
newIt
==
pNewNodes
->
begin
())
if
(
newIt
==
pNewNodes
->
begin
())
patchIt
=
insIt
;
patchIt
=
insIt
;
if
((
*
newIt
)
->
GetType
()
==
NTEXT
)
PosAfterInsert
=
SmCaretPos
(
*
newIt
,
static_cast
<
SmTextNode
*>
(
*
newIt
)
->
GetText
().
getLength
());
else
PosAfterInsert
=
SmCaretPos
(
*
newIt
,
1
);
}
}
//Patch the places we've changed stuff
//Patch the places we've changed stuff
PatchLineList
(
pLineList
,
patchIt
);
PatchLineList
(
pLineList
,
patchIt
);
PosAfterInsert
=
PatchLineList
(
pLineList
,
it
);
SmCaretPos
PosAfterInsert
=
PatchLineList
(
pLineList
,
it
);
//Release list, we've taken the nodes
//Release list, we've taken the nodes
delete
pNewNodes
;
delete
pNewNodes
;
pNewNodes
=
nullptr
;
pNewNodes
=
nullptr
;
...
...
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