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
0a49132c
Kaydet (Commit)
0a49132c
authored
May 11, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#705918 Dereference before null check
Change-Id: Ic36d335f06833e830c97ca34b7d96c5ff421f944
üst
ad1bb28b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
28 deletions
+25
-28
dpage.cxx
sw/source/core/draw/dpage.cxx
+25
-28
No files found.
sw/source/core/draw/dpage.cxx
Dosyayı görüntüle @
0a49132c
...
@@ -84,38 +84,35 @@ const SdrPageGridFrameList* SwDPage::GetGridFrameList(
...
@@ -84,38 +84,35 @@ const SdrPageGridFrameList* SwDPage::GetGridFrameList(
const
SdrPageView
*
pPV
,
const
Rectangle
*
pRect
)
const
const
SdrPageView
*
pPV
,
const
Rectangle
*
pRect
)
const
{
{
SwViewShell
*
pSh
=
((
SwDrawDocument
*
)
GetModel
())
->
GetDoc
().
GetCurrentViewShell
();
SwViewShell
*
pSh
=
((
SwDrawDocument
*
)
GetModel
())
->
GetDoc
().
GetCurrentViewShell
();
if
(
pSh
)
while
(
pSh
&&
pSh
->
Imp
()
->
GetPageView
()
!=
pPV
)
pSh
=
(
SwViewShell
*
)
pSh
->
GetNext
();
if
(
pSh
)
{
{
while
(
pSh
->
Imp
()
->
GetPageView
()
!=
pPV
)
if
(
pGridLst
)
pSh
=
(
SwViewShell
*
)
pSh
->
GetNext
();
((
SwDPage
*
)
this
)
->
pGridLst
->
Clear
();
if
(
pSh
)
else
{
((
SwDPage
*
)
this
)
->
pGridLst
=
new
SdrPageGridFrameList
;
if
(
pGridLst
)
((
SwDPage
*
)
this
)
->
pGridLst
->
Clear
();
else
((
SwDPage
*
)
this
)
->
pGridLst
=
new
SdrPageGridFrameList
;
if
(
pRect
)
if
(
pRect
)
{
{
//The drawing demands all pages which overlap with the rest.
//The drawing demands all pages which overlap with the rest.
const
SwRect
aRect
(
*
pRect
);
const
SwRect
aRect
(
*
pRect
);
const
SwFrm
*
pPg
=
pSh
->
GetLayout
()
->
Lower
();
const
SwFrm
*
pPg
=
pSh
->
GetLayout
()
->
Lower
();
do
{
if
(
pPg
->
Frm
().
IsOver
(
aRect
)
)
::
InsertGridFrame
(
((
SwDPage
*
)
this
)
->
pGridLst
,
pPg
);
pPg
=
pPg
->
GetNext
();
}
while
(
pPg
);
}
else
{
//The drawing demands all visible pages
const
SwFrm
*
pPg
=
pSh
->
Imp
()
->
GetFirstVisPage
();
if
(
pPg
)
do
do
{
if
(
pPg
->
Frm
().
IsOver
(
aRect
)
)
{
::
InsertGridFrame
(
((
SwDPage
*
)
this
)
->
pGridLst
,
pPg
);
::
InsertGridFrame
(
((
SwDPage
*
)
this
)
->
pGridLst
,
pPg
);
pPg
=
pPg
->
GetNext
();
pPg
=
pPg
->
GetNext
();
}
while
(
pPg
);
}
while
(
pPg
&&
pPg
->
Frm
().
IsOver
(
pSh
->
VisArea
()
)
);
}
else
{
//The drawing demands all visible pages
const
SwFrm
*
pPg
=
pSh
->
Imp
()
->
GetFirstVisPage
();
if
(
pPg
)
do
{
::
InsertGridFrame
(
((
SwDPage
*
)
this
)
->
pGridLst
,
pPg
);
pPg
=
pPg
->
GetNext
();
}
while
(
pPg
&&
pPg
->
Frm
().
IsOver
(
pSh
->
VisArea
()
)
);
}
}
}
}
}
return
pGridLst
;
return
pGridLst
;
...
...
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