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
841a3106
Kaydet (Commit)
841a3106
authored
Eki 14, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735963 Unchecked dynamic_cast
Change-Id: I0ff0a1aeafed4f38772123596b477b8df68ca69a
üst
6dd3c355
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
xmlexpit.cxx
sw/source/filter/xml/xmlexpit.cxx
+11
-12
No files found.
sw/source/filter/xml/xmlexpit.cxx
Dosyayı görüntüle @
841a3106
...
...
@@ -897,8 +897,7 @@ bool SvXMLExportItemMapper::QueryXMLValue(
case
RES_BACKGROUND
:
{
const
SvxBrushItem
*
pBrush
=
dynamic_cast
<
const
SvxBrushItem
*>
(
&
rItem
);
OSL_ENSURE
(
pBrush
!=
NULL
,
"Wrong Which-ID"
);
const
SvxBrushItem
&
rBrush
=
dynamic_cast
<
const
SvxBrushItem
&>
(
rItem
);
// note: the graphic is only exported if nMemberId equals
// MID_GRAPHIC..
...
...
@@ -907,21 +906,21 @@ bool SvXMLExportItemMapper::QueryXMLValue(
switch
(
nMemberId
)
{
case
MID_BACK_COLOR
:
if
(
pBrush
->
GetColor
().
GetTransparency
()
)
if
(
rBrush
.
GetColor
().
GetTransparency
()
)
aOut
.
append
(
GetXMLToken
(
XML_TRANSPARENT
)
);
else
{
::
sax
::
Converter
::
convertColor
(
aOut
,
pBrush
->
GetColor
().
GetColor
());
rBrush
.
GetColor
().
GetColor
());
}
bOk
=
true
;
break
;
case
MID_GRAPHIC_LINK
:
if
(
pBrush
->
GetGraphicPos
()
!=
GPOS_NONE
)
if
(
rBrush
.
GetGraphicPos
()
!=
GPOS_NONE
)
{
uno
::
Any
aAny
;
pBrush
->
QueryValue
(
aAny
,
MID_GRAPHIC_URL
);
rBrush
.
QueryValue
(
aAny
,
MID_GRAPHIC_URL
);
OUString
sTmp
;
aAny
>>=
sTmp
;
aOut
.
append
(
sTmp
);
...
...
@@ -930,7 +929,7 @@ bool SvXMLExportItemMapper::QueryXMLValue(
break
;
case
MID_GRAPHIC_POSITION
:
switch
(
pBrush
->
GetGraphicPos
()
)
switch
(
rBrush
.
GetGraphicPos
()
)
{
case
GPOS_LT
:
case
GPOS_MT
:
...
...
@@ -958,7 +957,7 @@ bool SvXMLExportItemMapper::QueryXMLValue(
{
aOut
.
append
(
' '
);
switch
(
pBrush
->
GetGraphicPos
()
)
switch
(
rBrush
.
GetGraphicPos
()
)
{
case
GPOS_LT
:
case
GPOS_LB
:
...
...
@@ -983,7 +982,7 @@ bool SvXMLExportItemMapper::QueryXMLValue(
case
MID_GRAPHIC_REPEAT
:
{
SvxGraphicPosition
eGraphicPos
=
pBrush
->
GetGraphicPos
();
SvxGraphicPosition
eGraphicPos
=
rBrush
.
GetGraphicPos
();
if
(
GPOS_AREA
==
eGraphicPos
)
{
aOut
.
append
(
GetXMLToken
(
XML_BACKGROUND_STRETCH
)
);
...
...
@@ -998,10 +997,10 @@ bool SvXMLExportItemMapper::QueryXMLValue(
break
;
case
MID_GRAPHIC_FILTER
:
if
(
pBrush
->
GetGraphicPos
()
!=
GPOS_NONE
&&
!
pBrush
->
GetGraphicFilter
().
isEmpty
()
)
if
(
rBrush
.
GetGraphicPos
()
!=
GPOS_NONE
&&
!
rBrush
.
GetGraphicFilter
().
isEmpty
()
)
{
aOut
.
append
(
pBrush
->
GetGraphicFilter
()
);
aOut
.
append
(
rBrush
.
GetGraphicFilter
()
);
bOk
=
true
;
}
break
;
...
...
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