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
2a855976
Kaydet (Commit)
2a855976
authored
Eki 14, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1326206 Dereference after null check
Change-Id: I187c182a1645cdd38c81bc72b3c836ab21725173
üst
0aca6eb7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
frmtool.cxx
sw/source/core/layout/frmtool.cxx
+4
-4
txtfly.cxx
sw/source/core/text/txtfly.cxx
+2
-3
No files found.
sw/source/core/layout/frmtool.cxx
Dosyayı görüntüle @
2a855976
...
...
@@ -3098,19 +3098,19 @@ const SwFrm* GetVirtualUpper( const SwFrm* pFrm, const Point& rPos )
return
pFrm
;
}
bool
Is_Lower_Of
(
const
SwFrm
*
pCurrFrm
,
const
SdrObject
*
pObj
)
bool
Is_Lower_Of
(
const
SwFrm
*
pCurrFrm
,
const
SdrObject
*
pObj
)
{
Point
aPos
;
const
SwFrm
*
pFrm
;
if
(
dynamic_cast
<
const
SwVirtFlyDrawObj
*>
(
pObj
)
!=
nullptr
)
if
(
const
SwVirtFlyDrawObj
*
pFlyDrawObj
=
dynamic_cast
<
const
SwVirtFlyDrawObj
*>
(
pObj
)
)
{
const
SwFlyFrm
*
pFly
=
static_cast
<
const
SwVirtFlyDrawObj
*>
(
pObj
)
->
GetFlyFrm
();
const
SwFlyFrm
*
pFly
=
pFlyDrawObj
->
GetFlyFrm
();
pFrm
=
pFly
->
GetAnchorFrm
();
aPos
=
pFly
->
Frm
().
Pos
();
}
else
{
pFrm
=
static_cast
<
SwDrawContact
*>
(
GetUserCall
(
pObj
)
)
->
GetAnchorFrm
(
pObj
);
pFrm
=
static_cast
<
SwDrawContact
*>
(
GetUserCall
(
pObj
))
->
GetAnchorFrm
(
pObj
);
aPos
=
pObj
->
GetCurrentBoundRect
().
TopLeft
();
}
OSL_ENSURE
(
pFrm
,
"8-( Fly is lost in Space."
);
...
...
sw/source/core/text/txtfly.cxx
Dosyayı görüntüle @
2a855976
...
...
@@ -665,10 +665,9 @@ bool SwTextFly::GetTop( const SwAnchoredObject* _pAnchoredObj,
// #i26945#
const
SdrObject
*
pNew
=
_pAnchoredObj
->
GetDrawObj
();
// #102344# Ignore connectors which have one or more connections
if
(
pNew
&&
dynamic_cast
<
const
SdrEdgeObj
*>
(
pNew
)
!=
nullptr
)
if
(
const
SdrEdgeObj
*
pEdgeObj
=
dynamic_cast
<
const
SdrEdgeObj
*>
(
pNew
)
)
{
if
(
static_cast
<
const
SdrEdgeObj
*>
(
pNew
)
->
GetConnectedNode
(
true
)
||
static_cast
<
const
SdrEdgeObj
*>
(
pNew
)
->
GetConnectedNode
(
false
))
if
(
pEdgeObj
->
GetConnectedNode
(
true
)
||
pEdgeObj
->
GetConnectedNode
(
false
))
{
return
false
;
}
...
...
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