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
7ec6e311
Kaydet (Commit)
7ec6e311
authored
Kas 18, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735514 Logically dead code
Change-Id: I33ffbe87b7c7f2f1fefc18f10055e47e2454ead1
üst
741bc7c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
51 deletions
+47
-51
swcrsr.cxx
sw/source/core/crsr/swcrsr.cxx
+47
-51
No files found.
sw/source/core/crsr/swcrsr.cxx
Dosyayı görüntüle @
7ec6e311
...
...
@@ -469,7 +469,7 @@ bool SwCursor::IsSelOvr( int eFlags )
return
false
;
// in different tables or only mark in table
if
(
(
pPtNd
&&
pMrkNd
)
||
pMrkNd
)
if
(
pMrkNd
)
{
// not allowed, so go back to old position
RestoreSavePos
();
...
...
@@ -478,68 +478,64 @@ bool SwCursor::IsSelOvr( int eFlags )
}
// Note: this cannot happen in TableMode
if
(
pPtNd
)
// if only Point in Table then go behind/in front of table
// Only Point in Table then go behind/in front of table
if
(
nsSwCursorSelOverFlags
::
SELOVER_CHANGEPOS
&
eFlags
)
{
if
(
nsSwCursorSelOverFlags
::
SELOVER_CHANGEPOS
&
eFlags
)
{
bool
bSelTop
=
GetPoint
()
->
nNode
.
GetIndex
()
<
((
nsSwCursorSelOverFlags
::
SELOVER_TOGGLE
&
eFlags
)
?
pSavePos
->
nNode
:
GetMark
()
->
nNode
.
GetIndex
());
bool
bSelTop
=
GetPoint
()
->
nNode
.
GetIndex
()
<
((
nsSwCursorSelOverFlags
::
SELOVER_TOGGLE
&
eFlags
)
?
pSavePos
->
nNode
:
GetMark
()
->
nNode
.
GetIndex
());
do
{
// loop for table after table
sal_uLong
nSEIdx
=
pPtNd
->
EndOfSectionIndex
();
sal_uLong
nSttEndTbl
=
nSEIdx
+
1
;
do
{
// loop for table after table
sal_uLong
nSEIdx
=
pPtNd
->
EndOfSectionIndex
();
sal_uLong
nSttEndTbl
=
nSEIdx
+
1
;
if
(
bSelTop
)
nSttEndTbl
=
rNds
[
nSEIdx
]
->
StartOfSectionIndex
()
-
1
;
if
(
bSelTop
)
nSttEndTbl
=
rNds
[
nSEIdx
]
->
StartOfSectionIndex
()
-
1
;
GetPoint
()
->
nNode
=
nSttEndTbl
;
const
SwNode
*
pMyNd
=
&
(
GetNode
());
GetPoint
()
->
nNode
=
nSttEndTbl
;
const
SwNode
*
pMyNd
=
&
(
GetNode
());
if
(
pMyNd
->
IsSectionNode
()
||
(
pMyNd
->
IsEndNode
()
&&
pMyNd
->
StartOfSectionNode
()
->
IsSectionNode
()
)
)
{
pMyNd
=
bSelTop
?
rNds
.
GoPrevSection
(
&
GetPoint
()
->
nNode
,
true
,
false
)
:
rNds
.
GoNextSection
(
&
GetPoint
()
->
nNode
,
true
,
false
);
if
(
pMyNd
->
IsSectionNode
()
||
(
pMyNd
->
IsEndNode
()
&&
pMyNd
->
StartOfSectionNode
()
->
IsSectionNode
()
)
)
{
pMyNd
=
bSelTop
?
rNds
.
GoPrevSection
(
&
GetPoint
()
->
nNode
,
true
,
false
)
:
rNds
.
GoNextSection
(
&
GetPoint
()
->
nNode
,
true
,
false
);
/* #i12312# Handle failure of Go{Prev|Next}Section */
if
(
0
==
pMyNd
)
break
;
/* #i12312# Handle failure of Go{Prev|Next}Section */
if
(
0
==
pMyNd
)
break
;
if
(
0
!=
(
pPtNd
=
pMyNd
->
FindTableNode
()
))
continue
;
}
if
(
0
!=
(
pPtNd
=
pMyNd
->
FindTableNode
()
))
continue
;
}
// we permit these
if
(
pMyNd
->
IsCntntNode
()
&&
::
CheckNodesRange
(
GetMark
()
->
nNode
,
GetPoint
()
->
nNode
,
true
))
// we permit these
if
(
pMyNd
->
IsCntntNode
()
&&
::
CheckNodesRange
(
GetMark
()
->
nNode
,
GetPoint
()
->
nNode
,
true
))
{
// table in table
const
SwTableNode
*
pOuterTableNd
=
pMyNd
->
FindTableNode
();
if
(
pOuterTableNd
)
pMyNd
=
pOuterTableNd
;
else
{
// table in table
const
SwTableNode
*
pOuterTableNd
=
pMyNd
->
FindTableNode
();
if
(
pOuterTableNd
)
pMyNd
=
pOuterTableNd
;
else
{
SwCntntNode
*
pCNd
=
const_cast
<
SwCntntNode
*>
(
static_cast
<
const
SwCntntNode
*>
(
pMyNd
));
GetPoint
()
->
nContent
.
Assign
(
pCNd
,
bSelTop
?
pCNd
->
Len
()
:
0
);
return
false
;
}
SwCntntNode
*
pCNd
=
const_cast
<
SwCntntNode
*>
(
static_cast
<
const
SwCntntNode
*>
(
pMyNd
));
GetPoint
()
->
nContent
.
Assign
(
pCNd
,
bSelTop
?
pCNd
->
Len
()
:
0
);
return
false
;
}
if
(
bSelTop
?
(
!
pMyNd
->
IsEndNode
()
||
0
==
(
pPtNd
=
pMyNd
->
FindTableNode
()
))
:
0
==
(
pPtNd
=
pMyNd
->
GetTableNode
()
))
break
;
}
while
(
true
);
}
// stay on old position
RestoreSavePos
();
return
true
;
}
if
(
bSelTop
?
(
!
pMyNd
->
IsEndNode
()
||
0
==
(
pPtNd
=
pMyNd
->
FindTableNode
()
))
:
0
==
(
pPtNd
=
pMyNd
->
GetTableNode
()
))
break
;
}
while
(
true
);
}
return
false
;
// stay on old position
RestoreSavePos
();
return
true
;
}
bool
SwCursor
::
IsInProtectTable
(
bool
bMove
,
bool
bChgCrsr
)
...
...
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