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
4d66989d
Kaydet (Commit)
4d66989d
authored
Nis 09, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ofz#1078 cgm infinite recurse
Change-Id: I6ba4c6a432f1dd150591f8d9b0f03e248a97c33e
üst
7cd4b591
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
cgm.cxx
filter/source/graphicfilter/icgm/cgm.cxx
+12
-1
cgm.hxx
filter/source/graphicfilter/icgm/cgm.hxx
+2
-1
recurse-1.cgm
sd/qa/unit/data/cgm/fail/recurse-1.cgm
+0
-0
No files found.
filter/source/graphicfilter/icgm/cgm.cxx
Dosyayı görüntüle @
4d66989d
...
@@ -51,6 +51,7 @@ CGM::CGM(uno::Reference< frame::XModel > const & rModel)
...
@@ -51,6 +51,7 @@ CGM::CGM(uno::Reference< frame::XModel > const & rModel)
,
mbPictureBody
(
false
)
,
mbPictureBody
(
false
)
,
mbFigure
(
false
)
,
mbFigure
(
false
)
,
mbFirstOutPut
(
false
)
,
mbFirstOutPut
(
false
)
,
mbInDefaultReplacement
(
false
)
,
mnAct4PostReset
(
0
)
,
mnAct4PostReset
(
0
)
,
mpBitmapInUse
(
nullptr
)
,
mpBitmapInUse
(
nullptr
)
,
mpChart
(
nullptr
)
,
mpChart
(
nullptr
)
...
@@ -620,8 +621,16 @@ void CGM::ImplDoClass()
...
@@ -620,8 +621,16 @@ void CGM::ImplDoClass()
void
CGM
::
ImplDefaultReplacement
()
void
CGM
::
ImplDefaultReplacement
()
{
{
if
(
!
maDefRepList
.
empty
()
)
if
(
!
maDefRepList
.
empty
()
)
{
{
if
(
mbInDefaultReplacement
)
{
SAL_WARN
(
"filter"
,
"recursion in ImplDefaultReplacement"
);
return
;
}
mbInDefaultReplacement
=
true
;
sal_uInt32
nOldEscape
=
mnEscape
;
sal_uInt32
nOldEscape
=
mnEscape
;
sal_uInt32
nOldElementClass
=
mnElementClass
;
sal_uInt32
nOldElementClass
=
mnElementClass
;
sal_uInt32
nOldElementID
=
mnElementID
;
sal_uInt32
nOldElementID
=
mnElementID
;
...
@@ -663,6 +672,8 @@ void CGM::ImplDefaultReplacement()
...
@@ -663,6 +672,8 @@ void CGM::ImplDefaultReplacement()
mnParaSize
=
mnElementSize
=
nOldElementSize
;
mnParaSize
=
mnElementSize
=
nOldElementSize
;
mpSource
=
pOldBuf
;
mpSource
=
pOldBuf
;
mpEndValidSource
=
pOldEndValidSource
;
mpEndValidSource
=
pOldEndValidSource
;
mbInDefaultReplacement
=
false
;
}
}
}
}
...
...
filter/source/graphicfilter/icgm/cgm.hxx
Dosyayı görüntüle @
4d66989d
...
@@ -64,7 +64,8 @@ class CGM
...
@@ -64,7 +64,8 @@ class CGM
bool
mbPictureBody
;
bool
mbPictureBody
;
bool
mbFigure
;
bool
mbFigure
;
bool
mbFirstOutPut
;
bool
mbFirstOutPut
;
sal_uInt32
mnAct4PostReset
;
bool
mbInDefaultReplacement
;
sal_uInt32
mnAct4PostReset
;
CGMBitmap
*
mpBitmapInUse
;
CGMBitmap
*
mpBitmapInUse
;
CGMChart
*
mpChart
;
// if sal_True->"SHWSLIDEREC"
CGMChart
*
mpChart
;
// if sal_True->"SHWSLIDEREC"
// otherwise "BEGINPIC" commands
// otherwise "BEGINPIC" commands
...
...
sd/qa/unit/data/cgm/fail/recurse-1.cgm
0 → 100644
Dosyayı görüntüle @
4d66989d
File added
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