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
3b7472b2
Kaydet (Commit)
3b7472b2
authored
Nis 16, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#74743 avoid infinite loop when gathering "svg" element styles
Change-Id: Ifcfd0c64302b9174510e3d774607f5ca60173885
üst
cae4370b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
svgstyleattributes.cxx
svgio/source/svgreader/svgstyleattributes.cxx
+7
-9
svgsvgnode.cxx
svgio/source/svgreader/svgsvgnode.cxx
+2
-1
No files found.
svgio/source/svgreader/svgstyleattributes.cxx
Dosyayı görüntüle @
3b7472b2
...
...
@@ -205,17 +205,15 @@ namespace svgio
const
SvgStyleAttributes
*
SvgStyleAttributes
::
getParentStyle
()
const
{
if
(
getCssStyleParent
())
{
return
getCssStyleParent
();
}
const
SvgStyleAttributes
*
pParentStyle
=
getCssStyleParent
();
if
(
mrOwner
.
getParent
())
{
return
mrOwner
.
getParent
()
->
getSvgStyleAttributes
();
}
// no parent style set, check parent for its style attributes
if
(
pParentStyle
==
NULL
&&
mrOwner
.
getParent
()
!=
NULL
)
pParentStyle
=
mrOwner
.
getParent
()
->
getSvgStyleAttributes
();
return
0
;
if
(
pParentStyle
!=
this
)
// to prevent infinite loop
return
pParentStyle
;
return
NULL
;
}
void
SvgStyleAttributes
::
add_text
(
...
...
svgio/source/svgreader/svgsvgnode.cxx
Dosyayı görüntüle @
3b7472b2
...
...
@@ -60,7 +60,8 @@ namespace svgio
const
SvgStyleAttributes
*
SvgSvgNode
::
getSvgStyleAttributes
()
const
{
return
checkForCssStyle
(
OUString
(
"svg"
),
maSvgStyleAttributes
);
checkForCssStyle
(
OUString
(
"svg"
),
maSvgStyleAttributes
);
return
maSvgStyleAttributes
.
getCssStyleParent
();
}
void
SvgSvgNode
::
parseAttribute
(
const
OUString
&
rTokenName
,
SVGToken
aSVGToken
,
const
OUString
&
aContent
)
...
...
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