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
e07a1a5d
Kaydet (Commit)
e07a1a5d
authored
Şub 28, 2018
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ofz#6602 infinite recursion
Change-Id: I358708f606655bcd0df948fd2e01725c706880c7
üst
756c9f23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
lwplayout.cxx
lotuswordpro/source/filter/lwplayout.cxx
+14
-2
lwplayout.hxx
lotuswordpro/source/filter/lwplayout.hxx
+1
-0
No files found.
lotuswordpro/source/filter/lwplayout.cxx
Dosyayı görüntüle @
e07a1a5d
...
...
@@ -82,6 +82,7 @@ LwpVirtualLayout::LwpVirtualLayout(LwpObjectHeader const &objHdr, LwpSvStream* p
,
m_bGettingMarginsValue
(
false
)
,
m_bGettingExtMarginsValue
(
false
)
,
m_bGettingUsePrinterSettings
(
false
)
,
m_bGettingUseWhen
(
false
)
,
m_nAttributes
(
0
)
,
m_nAttributes2
(
0
)
,
m_nAttributes3
(
0
)
...
...
@@ -227,6 +228,12 @@ bool LwpVirtualLayout::IsComplex()
*/
LwpUseWhen
*
LwpVirtualLayout
::
GetUseWhen
()
{
if
(
m_bGettingUseWhen
)
throw
std
::
runtime_error
(
"recursion in layout"
);
m_bGettingUseWhen
=
true
;
LwpUseWhen
*
pRet
=
nullptr
;
/*
If we have a parent, and I'm not a page layout,
use my parents information.
...
...
@@ -236,11 +243,16 @@ LwpUseWhen* LwpVirtualLayout::GetUseWhen()
//get parent
rtl
::
Reference
<
LwpVirtualLayout
>
xParent
(
dynamic_cast
<
LwpVirtualLayout
*>
(
GetParent
().
obj
().
get
()));
if
(
xParent
.
is
()
&&
!
xParent
->
IsHeader
()
&&
(
xParent
->
GetLayoutType
()
!=
LWP_PAGE_LAYOUT
))
return
xParent
->
GetUseWhen
();
pRet
=
xParent
->
GetUseWhen
();
}
return
VirtualGetUseWhen
();
if
(
!
pRet
)
pRet
=
VirtualGetUseWhen
();
m_bGettingUseWhen
=
false
;
return
pRet
;
}
/**
* @descr: Whether this layout is page layout or not
...
...
lotuswordpro/source/filter/lwplayout.hxx
Dosyayı görüntüle @
e07a1a5d
...
...
@@ -227,6 +227,7 @@ protected:
bool
m_bGettingMarginsValue
;
bool
m_bGettingExtMarginsValue
;
bool
m_bGettingUsePrinterSettings
;
bool
m_bGettingUseWhen
;
sal_uInt32
m_nAttributes
;
sal_uInt32
m_nAttributes2
;
sal_uInt32
m_nAttributes3
;
...
...
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