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
00ae1cec
Kaydet (Commit)
00ae1cec
authored
Tem 16, 2012
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change form of checking self-assignment + cleaning before assigning
Change-Id: Idc8e8445b870805b99d2b9434cf1f752c63cc6a0
üst
ba768f83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
41 deletions
+45
-41
xfparastyle.cxx
lotuswordpro/source/filter/xfilter/xfparastyle.cxx
+45
-41
No files found.
lotuswordpro/source/filter/xfilter/xfparastyle.cxx
Dosyayı görüntüle @
00ae1cec
...
...
@@ -116,7 +116,7 @@ XFParaStyle::XFParaStyle(const XFParaStyle& other) : XFStyle(other)
m_aLineHeight
=
other
.
m_aLineHeight
;
m_aPadding
=
other
.
m_aPadding
;
m_aBreaks
=
other
.
m_aBreaks
;
// m_aTabs = other.m_aTabs;
for
(
size_t
i
=
0
;
i
<
other
.
m_aTabs
.
GetCount
();
++
i
)
{
const
IXFStyle
*
pStyle
=
other
.
m_aTabs
.
Item
(
i
);
...
...
@@ -135,52 +135,56 @@ XFParaStyle::XFParaStyle(const XFParaStyle& other) : XFStyle(other)
XFParaStyle
&
XFParaStyle
::
operator
=
(
const
XFParaStyle
&
other
)
{
// Check for self-assignment
if
(
this
==
&
other
)
return
*
this
;
m_strParentStyleName
=
other
.
m_strParentStyleName
;
m_nFlag
=
other
.
m_nFlag
;
m_eAlignType
=
other
.
m_eAlignType
;
m_fTextIndent
=
other
.
m_fTextIndent
;
m_bNumberLines
=
other
.
m_bNumberLines
;
m_nLineNumberRestart
=
other
.
m_nLineNumberRestart
;
m_bNumberRight
=
other
.
m_bNumberRight
;
if
(
other
.
m_pFont
)
m_pFont
=
other
.
m_pFont
;
else
m_pFont
=
NULL
;
if
(
other
.
m_pBorders
)
m_pBorders
=
new
XFBorders
(
*
other
.
m_pBorders
);
else
m_pBorders
=
NULL
;
m_aBackColor
=
other
.
m_aBackColor
;
if
(
other
.
m_pBGImage
)
m_pBGImage
=
new
XFBGImage
(
*
other
.
m_pBGImage
);
else
m_pBGImage
=
NULL
;
m_aShadow
=
other
.
m_aShadow
;
m_aMargin
=
other
.
m_aMargin
;
m_aDropcap
=
other
.
m_aDropcap
;
m_aLineHeight
=
other
.
m_aLineHeight
;
m_aPadding
=
other
.
m_aPadding
;
m_aBreaks
=
other
.
m_aBreaks
;
// m_aTabs = other.m_aTabs;
for
(
size_t
i
=
0
;
i
<
other
.
m_aTabs
.
GetCount
();
++
i
)
if
(
this
!=
&
other
)
{
const
IXFStyle
*
pStyle
=
other
.
m_aTabs
.
Item
(
i
);
if
(
pStyle
)
// first , clean member
delete
(
m_pBGImage
);
m_aTabs
.
Reset
();
m_strParentStyleName
=
other
.
m_strParentStyleName
;
m_nFlag
=
other
.
m_nFlag
;
m_eAlignType
=
other
.
m_eAlignType
;
m_fTextIndent
=
other
.
m_fTextIndent
;
m_bNumberLines
=
other
.
m_bNumberLines
;
m_nLineNumberRestart
=
other
.
m_nLineNumberRestart
;
m_bNumberRight
=
other
.
m_bNumberRight
;
if
(
other
.
m_pFont
)
m_pFont
=
other
.
m_pFont
;
else
m_pFont
=
NULL
;
if
(
other
.
m_pBorders
)
m_pBorders
=
new
XFBorders
(
*
other
.
m_pBorders
);
else
m_pBorders
=
NULL
;
m_aBackColor
=
other
.
m_aBackColor
;
if
(
other
.
m_pBGImage
)
m_pBGImage
=
new
XFBGImage
(
*
other
.
m_pBGImage
);
else
m_pBGImage
=
NULL
;
m_aShadow
=
other
.
m_aShadow
;
m_aMargin
=
other
.
m_aMargin
;
m_aDropcap
=
other
.
m_aDropcap
;
m_aLineHeight
=
other
.
m_aLineHeight
;
m_aPadding
=
other
.
m_aPadding
;
m_aBreaks
=
other
.
m_aBreaks
;
for
(
size_t
i
=
0
;
i
<
other
.
m_aTabs
.
GetCount
();
++
i
)
{
const
XFTabStyle
*
pTabStyle
=
dynamic_cast
<
const
XFTabStyle
*>
(
pStyle
);
if
(
p
Tab
Style
)
const
IXFStyle
*
pStyle
=
other
.
m_aTabs
.
Item
(
i
);
if
(
pStyle
)
{
XFTabStyle
*
pCopyStyle
=
new
XFTabStyle
(
*
pTabStyle
);
m_aTabs
.
AddStyle
(
pCopyStyle
);
const
XFTabStyle
*
pTabStyle
=
dynamic_cast
<
const
XFTabStyle
*>
(
pStyle
);
if
(
pTabStyle
)
{
XFTabStyle
*
pCopyStyle
=
new
XFTabStyle
(
*
pTabStyle
);
m_aTabs
.
AddStyle
(
pCopyStyle
);
}
}
}
}
return
*
this
;
}
...
...
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