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
2e30212c
Kaydet (Commit)
2e30212c
authored
May 26, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#704936 Unchecked dynamic_cast
Change-Id: I92e1f95aef32a9d0431ce3fbca0a7ab6ce5cadd0
üst
178c5d8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
txtfly.cxx
sw/source/core/text/txtfly.cxx
+9
-9
No files found.
sw/source/core/text/txtfly.cxx
Dosyayı görüntüle @
2e30212c
...
...
@@ -512,19 +512,19 @@ bool SwTxtFly::DrawTextOpaque( SwDrawTextInfo &rInf )
mpCurrAnchoredObj
!=
pTmpAnchoredObj
)
{
// #i68520#
const
SwFlyFrm
*
pFly
=
dynamic_cast
<
const
SwFlyFrm
*>
(
pTmpAnchoredObj
);
if
(
aRegion
.
GetOrigin
().
IsOver
(
pFly
->
Frm
()
)
)
const
SwFlyFrm
&
rFly
=
dynamic_cast
<
const
SwFlyFrm
&>
(
*
pTmpAnchoredObj
);
if
(
aRegion
.
GetOrigin
().
IsOver
(
rFly
.
Frm
()
)
)
{
const
SwFrmFmt
*
pFmt
=
pFly
->
GetFmt
();
const
SwFrmFmt
*
pFmt
=
rFly
.
GetFmt
();
const
SwFmtSurround
&
rSur
=
pFmt
->
GetSurround
();
const
SwFmtAnchor
&
rAnchor
=
pFmt
->
GetAnchor
();
// Only the ones who are opaque and more to the top
if
(
!
(
pFly
->
IsBackgroundTransparent
()
||
pFly
->
IsShadowTransparent
()
)
&&
if
(
!
(
rFly
.
IsBackgroundTransparent
()
||
rFly
.
IsShadowTransparent
()
)
&&
SURROUND_THROUGHT
==
rSur
.
GetSurround
()
&&
(
!
rSur
.
IsAnchorOnly
()
||
// #i68520#
GetMaster
()
==
pFly
->
GetAnchorFrm
()
||
GetMaster
()
==
rFly
.
GetAnchorFrm
()
||
((
FLY_AT_PARA
!=
rAnchor
.
GetAnchorId
())
&&
(
FLY_AT_CHAR
!=
rAnchor
.
GetAnchorId
())
)
...
...
@@ -536,14 +536,14 @@ bool SwTxtFly::DrawTextOpaque( SwDrawTextInfo &rInf )
{
// Except for the content is transparent
const
SwNoTxtFrm
*
pNoTxt
=
pFly
->
Lower
()
&&
pFly
->
Lower
()
->
IsNoTxtFrm
()
?
(
SwNoTxtFrm
*
)
pFly
->
Lower
()
rFly
.
Lower
()
&&
rFly
.
Lower
()
->
IsNoTxtFrm
()
?
(
SwNoTxtFrm
*
)
rFly
.
Lower
()
:
0
;
if
(
!
pNoTxt
||
(
!
pNoTxt
->
IsTransparent
()
&&
!
rSur
.
IsContour
())
)
{
bOpaque
=
true
;
aRegion
-=
pFly
->
Frm
();
aRegion
-=
rFly
.
Frm
();
}
}
}
...
...
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