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
3d93bde2
Kaydet (Commit)
3d93bde2
authored
Ara 03, 2014
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use C++11 iteration
Change-Id: I94528ad25eb7fae3a9e7fb7aa6bc721f40d8c187
üst
efbb2e5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
crsrsh.cxx
sw/source/core/crsr/crsrsh.cxx
+9
-14
No files found.
sw/source/core/crsr/crsrsh.cxx
Dosyayı görüntüle @
3d93bde2
...
@@ -1627,33 +1627,28 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, bool bIdleEnd )
...
@@ -1627,33 +1627,28 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, bool bIdleEnd )
// loops _behind_ the last node in the selection, which always works if you
// loops _behind_ the last node in the selection, which always works if you
// are in content.) To achieve this, we'll force cursor(s) to point into
// are in content.) To achieve this, we'll force cursor(s) to point into
// content, if UpdateCrsrPos() hasn't already done so.
// content, if UpdateCrsrPos() hasn't already done so.
SwPaM
*
pCmp
=
m_pCurCrsr
;
for
(
SwPaM
&
rCmp
:
m_pCurCrsr
->
GetRingContainer
())
do
{
{
// start will move forwards, end will move backwards
// start will move forwards, end will move backwards
bool
bPointIsStart
=
(
pCmp
->
Start
()
==
pCmp
->
GetPoint
()
);
bool
bPointIsStart
=
(
rCmp
.
Start
()
==
rCmp
.
GetPoint
()
);
// move point; forward if it's the start, backwards if it's the end
// move point; forward if it's the start, backwards if it's the end
if
(
!
pCmp
->
GetPoint
()
->
nNode
.
GetNode
().
IsCntntNode
()
)
if
(
!
rCmp
.
GetPoint
()
->
nNode
.
GetNode
().
IsCntntNode
()
)
pCmp
->
Move
(
bPointIsStart
?
fnMoveForward
:
fnMoveBackward
,
rCmp
.
Move
(
bPointIsStart
?
fnMoveForward
:
fnMoveBackward
,
fnGoCntnt
);
fnGoCntnt
);
// move mark (if exists); forward if it's the start, else backwards
// move mark (if exists); forward if it's the start, else backwards
if
(
pCmp
->
HasMark
()
)
if
(
rCmp
.
HasMark
()
)
{
{
if
(
!
pCmp
->
GetMark
()
->
nNode
.
GetNode
().
IsCntntNode
()
)
if
(
!
rCmp
.
GetMark
()
->
nNode
.
GetNode
().
IsCntntNode
()
)
{
{
pCmp
->
Exchange
();
rCmp
.
Exchange
();
pCmp
->
Move
(
!
bPointIsStart
?
fnMoveForward
:
fnMoveBackward
,
rCmp
.
Move
(
!
bPointIsStart
?
fnMoveForward
:
fnMoveBackward
,
fnGoCntnt
);
fnGoCntnt
);
pCmp
->
Exchange
();
rCmp
.
Exchange
();
}
}
}
}
// iterate to next PaM in ring
pCmp
=
static_cast
<
SwPaM
*>
(
pCmp
->
GetNext
()
);
}
}
while
(
pCmp
!=
m_pCurCrsr
);
SwRect
aOld
(
m_aCharRect
);
SwRect
aOld
(
m_aCharRect
);
bool
bFirst
=
true
;
bool
bFirst
=
true
;
...
...
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