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
d7b75ef4
Kaydet (Commit)
d7b75ef4
authored
Eki 14, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735966 Unchecked dynamic_cast
Change-Id: Ib949aab22c8fe001d15d536abbf6984df86f5a03
üst
cbe3b018
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
xmlexpit.cxx
sw/source/filter/xml/xmlexpit.cxx
+13
-14
No files found.
sw/source/filter/xml/xmlexpit.cxx
Dosyayı görüntüle @
d7b75ef4
...
...
@@ -384,60 +384,59 @@ bool SvXMLExportItemMapper::QueryXMLValue(
case
RES_LR_SPACE
:
{
const
SvxLRSpaceItem
*
pLRSpace
=
dynamic_cast
<
const
SvxLRSpaceItem
*>
(
&
rItem
);
OSL_ENSURE
(
pLRSpace
!=
NULL
,
"Wrong Which-ID!"
);
const
SvxLRSpaceItem
&
rLRSpace
=
dynamic_cast
<
const
SvxLRSpaceItem
&>
(
rItem
);
bOk
=
true
;
switch
(
nMemberId
)
{
case
MID_L_MARGIN
:
if
(
pLRSpace
->
GetPropLeft
()
!=
100
)
if
(
rLRSpace
.
GetPropLeft
()
!=
100
)
{
::
sax
::
Converter
::
convertPercent
(
aOut
,
pLRSpace
->
GetPropLeft
()
);
aOut
,
rLRSpace
.
GetPropLeft
()
);
}
else
{
rUnitConverter
.
convertMeasureToXML
(
aOut
,
pLRSpace
->
GetLeft
()
);
aOut
,
rLRSpace
.
GetLeft
()
);
}
break
;
case
MID_R_MARGIN
:
if
(
pLRSpace
->
GetPropRight
()
!=
100
)
if
(
rLRSpace
.
GetPropRight
()
!=
100
)
{
::
sax
::
Converter
::
convertPercent
(
aOut
,
pLRSpace
->
GetPropRight
()
);
aOut
,
rLRSpace
.
GetPropRight
()
);
}
else
{
rUnitConverter
.
convertMeasureToXML
(
aOut
,
pLRSpace
->
GetRight
()
);
aOut
,
rLRSpace
.
GetRight
()
);
}
break
;
case
MID_FIRST_AUTO
:
if
(
pLRSpace
->
IsAutoFirst
()
)
if
(
rLRSpace
.
IsAutoFirst
()
)
{
::
sax
::
Converter
::
convertBool
(
aOut
,
pLRSpace
->
IsAutoFirst
()
);
aOut
,
rLRSpace
.
IsAutoFirst
()
);
}
else
bOk
=
false
;
break
;
case
MID_FIRST_LINE_INDENT
:
if
(
!
pLRSpace
->
IsAutoFirst
()
)
if
(
!
rLRSpace
.
IsAutoFirst
()
)
{
if
(
pLRSpace
->
GetPropTextFirstLineOfst
()
!=
100
)
if
(
rLRSpace
.
GetPropTextFirstLineOfst
()
!=
100
)
{
::
sax
::
Converter
::
convertPercent
(
aOut
,
pLRSpace
->
GetPropTextFirstLineOfst
()
);
aOut
,
rLRSpace
.
GetPropTextFirstLineOfst
()
);
}
else
{
rUnitConverter
.
convertMeasureToXML
(
aOut
,
pLRSpace
->
GetTextFirstLineOfst
()
);
aOut
,
rLRSpace
.
GetTextFirstLineOfst
()
);
}
}
else
...
...
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