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
daa605e5
Kaydet (Commit)
daa605e5
authored
Şub 16, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#736209: Out-of-bounds access
Change-Id: Idd0b5bb68bd0038473f981bb03aab63a5defd3b7
üst
1c349320
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
writerhelper.hxx
sw/source/filter/ww8/writerhelper.hxx
+17
-1
ww8par.cxx
sw/source/filter/ww8/ww8par.cxx
+2
-2
No files found.
sw/source/filter/ww8/writerhelper.hxx
Dosyayı görüntüle @
daa605e5
...
...
@@ -665,10 +665,26 @@ namespace sw
*/
const
SwNumFmt
*
GetNumFmtFromTxtNode
(
const
SwTxtNode
&
rTxtNode
);
/** Get the Numbering Format for a given level from a numbering rule
@param rRule
The numbering rule
@param nLevel
The numbering level
@return A SwNumFmt pointer that describes the numbering level
or 0 if the nLevel is out of range
@author
<a href="mailto:cmc@openoffice.org">Caolán McNamara</a>
*/
const
SwNumFmt
*
GetNumFmtFromSwNumRuleLevel
(
const
SwNumRule
&
rRule
,
int
nLevel
);
const
SwNumRule
*
GetNumRuleFromTxtNode
(
const
SwTxtNode
&
rTxtNd
);
const
SwNumRule
*
GetNormalNumRuleFromTxtNode
(
const
SwTxtNode
&
rTxtNd
);
/** Get the SwNoTxtNode associated with a SwFrmFmt if here is one
There are two differing types of numbering formats that may be on a
...
...
sw/source/filter/ww8/ww8par.cxx
Dosyayı görüntüle @
daa605e5
...
...
@@ -1008,8 +1008,8 @@ const SwNumFmt* SwWW8FltControlStack::GetNumFmtFromStack(const SwPosition &rPos,
if
(
rTxtNode
.
IsCountedInList
())
{
const
SwNumRule
*
pRule
=
pDoc
->
FindNumRulePtr
(
sName
);
sal_uInt8
nLvl
=
static_cast
<
sal_uInt8
>
(
rTxtNode
.
GetActualListLevel
());
pRet
=
&
(
pRule
->
Get
(
nLvl
));
pRet
=
GetNumFmtFromSwNumRuleLevel
(
*
pRule
,
rTxtNode
.
GetActualListLevel
(
));
}
}
return
pRet
;
...
...
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