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
71e71d4b
Kaydet (Commit)
71e71d4b
authored
Nis 18, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1202830 Out-of-bounds access
Change-Id: I25edea176b69c1c1f87bdbff790a39298a813660
üst
63582369
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
editsh.cxx
sw/source/core/edit/editsh.cxx
+17
-4
No files found.
sw/source/core/edit/editsh.cxx
Dosyayı görüntüle @
71e71d4b
...
...
@@ -798,12 +798,25 @@ void SwEditShell::SetNumberingRestart()
SwTxtNode
*
pTxtNd
(
static_cast
<
SwTxtNode
*>
(
pNd
)
);
SwNumRule
*
pNumRule
(
pTxtNd
->
GetNumRule
()
);
if
(
pNumRule
&&
pTxtNd
->
GetNum
()
&&
bool
bIsNodeNum
=
(
pNumRule
&&
pTxtNd
->
GetNum
()
&&
(
pTxtNd
->
HasNumber
()
||
pTxtNd
->
HasBullet
()
)
&&
pTxtNd
->
IsCountedInList
()
&&
!
pTxtNd
->
IsListRestart
()
&&
pTxtNd
->
GetNum
()
->
GetNumber
()
==
pNumRule
->
Get
(
static_cast
<
sal_uInt16
>
(
pTxtNd
->
GetActualListLevel
())
).
GetStart
()
)
!
pTxtNd
->
IsListRestart
()
);
if
(
bIsNodeNum
)
{
int
nListLevel
=
pTxtNd
->
GetActualListLevel
();
if
(
nListLevel
<
0
)
nListLevel
=
0
;
if
(
nListLevel
>=
MAXLEVEL
)
nListLevel
=
MAXLEVEL
-
1
;
bIsNodeNum
=
pTxtNd
->
GetNum
()
->
GetNumber
()
==
pNumRule
->
Get
(
static_cast
<
sal_uInt16
>
(
nListLevel
)
).
GetStart
();
}
if
(
bIsNodeNum
)
{
// now set a the start value as attribute
SwPosition
aCurrentNode
(
*
pNd
);
...
...
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