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
3d42c1fc
Kaydet (Commit)
3d42c1fc
authored
Şub 09, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
crashtesting: crash on loading moz330387-6.svg
Change-Id: I9bba4cd9332320285c06ca3ba8eaf94ab89dfeef
üst
9ae89128
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
21 deletions
+24
-21
svgreader.cxx
filter/source/svg/svgreader.cxx
+24
-21
No files found.
filter/source/svg/svgreader.cxx
Dosyayı görüntüle @
3d42c1fc
...
...
@@ -348,29 +348,32 @@ struct AnnotatingVisitor
}
case
XML_STOP
:
{
const
sal_Int32
nNumAttrs
(
xAttributes
->
getLength
()
);
maGradientStopVector
.
push_back
(
GradientStop
());
maGradientVector
.
back
().
maStops
.
push_back
(
maGradientStopVector
.
size
()
-
1
);
// first parse 'color' as 'stop-color' might depend on it
// if 'stop-color''s value is "currentColor" and parsed previously
uno
::
Reference
<
xml
::
dom
::
XNode
>
xNodeColor
(
xAttributes
->
getNamedItem
(
"color"
));
if
(
xNodeColor
.
is
())
parseGradientStop
(
maGradientStopVector
.
back
(),
maGradientStopVector
.
size
()
-
1
,
XML_STOP_COLOR
,
xNodeColor
->
getNodeValue
()
);
//now, parse the rest of attributes
for
(
sal_Int32
i
=
0
;
i
<
nNumAttrs
;
++
i
)
if
(
!
maGradientVector
.
empty
())
{
const
sal_Int32
nTokenId
(
getTokenId
(
xAttributes
->
item
(
i
)
->
getNodeName
()));
if
(
nTokenId
!=
XML_COLOR
)
const
sal_Int32
nNumAttrs
(
xAttributes
->
getLength
()
);
maGradientStopVector
.
push_back
(
GradientStop
());
maGradientVector
.
back
().
maStops
.
push_back
(
maGradientStopVector
.
size
()
-
1
);
// first parse 'color' as 'stop-color' might depend on it
// if 'stop-color''s value is "currentColor" and parsed previously
uno
::
Reference
<
xml
::
dom
::
XNode
>
xNodeColor
(
xAttributes
->
getNamedItem
(
"color"
));
if
(
xNodeColor
.
is
())
parseGradientStop
(
maGradientStopVector
.
back
(),
maGradientStopVector
.
size
()
-
1
,
nTokenId
,
xAttributes
->
item
(
i
)
->
getNodeValue
()
);
maGradientStopVector
.
size
()
-
1
,
XML_STOP_COLOR
,
xNodeColor
->
getNodeValue
()
);
//now, parse the rest of attributes
for
(
sal_Int32
i
=
0
;
i
<
nNumAttrs
;
++
i
)
{
const
sal_Int32
nTokenId
(
getTokenId
(
xAttributes
->
item
(
i
)
->
getNodeName
()));
if
(
nTokenId
!=
XML_COLOR
)
parseGradientStop
(
maGradientStopVector
.
back
(),
maGradientStopVector
.
size
()
-
1
,
nTokenId
,
xAttributes
->
item
(
i
)
->
getNodeValue
()
);
}
}
break
;
}
...
...
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