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
b18cfdc7
Kaydet (Commit)
b18cfdc7
authored
Nis 29, 2012
tarafından
Chr. Rossmanith
Kaydeden (comit)
Fridrich Štrba
Nis 30, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SVG: text elements and graphic elements should not share style ids
üst
23791c1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
gfxtypes.hxx
filter/source/svg/gfxtypes.hxx
+6
-2
svgreader.cxx
filter/source/svg/svgreader.cxx
+7
-0
No files found.
filter/source/svg/gfxtypes.hxx
Dosyayı görüntüle @
b18cfdc7
...
...
@@ -173,10 +173,11 @@ struct State
maTransform
(),
maViewport
(),
maViewBox
(),
mbIsText
(
false
),
maFontFamily
(),
// app-default
mnFontSize
(
0
),
maFontStyle
(
RTL_CONSTASCII_USTRINGPARAM
(
"normal"
)
),
maFontVariant
(
RTL_CONSTASCII_USTRINGPARAM
(
"normal"
)
),
maFontStyle
(
"normal"
),
maFontVariant
(
"normal"
),
mnFontWeight
(
400.0
),
meTextAnchor
(
BEFORE
),
meTextDisplayAlign
(
BEFORE
),
...
...
@@ -211,6 +212,7 @@ struct State
basegfx
::
B2DRange
maViewport
;
basegfx
::
B2DRange
maViewBox
;
bool
mbIsText
;
rtl
::
OUString
maFontFamily
;
/** Absolute: xx-small=6.94 | x-small=8.33 | small=10 | medium=12 | large=14.4 | x-large=17.28 | xx-large=20.736
...
...
@@ -263,6 +265,7 @@ inline bool operator==(const State& rLHS, const State& rRHS )
rLHS
.
maTransform
==
rRHS
.
maTransform
&&
rLHS
.
maViewport
==
rRHS
.
maViewport
&&
rLHS
.
maViewBox
==
rRHS
.
maViewBox
&&
rLHS
.
mbIsText
==
rRHS
.
mbIsText
&&
rLHS
.
maFontFamily
==
rRHS
.
maFontFamily
&&
rLHS
.
mnFontSize
==
rRHS
.
mnFontSize
&&
rLHS
.
maFontStyle
==
rRHS
.
maFontStyle
&&
...
...
@@ -309,6 +312,7 @@ struct StateHash
^
size_t
(
rState
.
maViewport
.
getHeight
())
^
size_t
(
rState
.
maViewBox
.
getWidth
())
^
size_t
(
rState
.
maViewBox
.
getHeight
())
^
size_t
(
rState
.
mbIsText
)
^
size_t
(
rState
.
maFontFamily
.
hashCode
())
^
size_t
(
rState
.
mnFontSize
)
^
size_t
(
rState
.
maFontStyle
.
hashCode
())
...
...
filter/source/svg/svgreader.cxx
Dosyayı görüntüle @
b18cfdc7
...
...
@@ -521,8 +521,12 @@ struct AnnotatingVisitor
rtl
::
Reference
<
SvXMLAttributeList
>
xAttrs
(
new
SvXMLAttributeList
()
);
uno
::
Reference
<
xml
::
sax
::
XAttributeList
>
xUnoAttrs
(
xAttrs
.
get
()
);
if
(
XML_TEXT
==
nTagId
)
rState
.
mbIsText
=
true
;
std
::
pair
<
StatePool
::
iterator
,
bool
>
aRes
=
mrStates
.
insert
(
rState
);
SAL_INFO
(
"svg"
,
"size "
<<
mrStates
.
size
()
<<
" id "
<<
const_cast
<
State
&>
(
*
aRes
.
first
).
mnStyleId
);
if
(
!
aRes
.
second
)
return
false
;
// not written
...
...
@@ -530,6 +534,8 @@ struct AnnotatingVisitor
// mnStyleId does not take part in hashing/comparison
const_cast
<
State
&>
(
*
aRes
.
first
).
mnStyleId
=
mnCurrStateId
;
SAL_INFO
(
"svg"
,
" --> "
<<
const_cast
<
State
&>
(
*
aRes
.
first
).
mnStyleId
);
mrStateMap
.
insert
(
std
::
make_pair
(
mnCurrStateId
,
rState
));
...
...
@@ -750,6 +756,7 @@ struct AnnotatingVisitor
void
writeStyle
(
const
uno
::
Reference
<
xml
::
dom
::
XElement
>&
xElem
,
const
sal_Int32
nTagId
)
{
SAL_INFO
(
"svg"
,
"writeStyle xElem "
<<
xElem
->
getTagName
());
sal_Int32
nEmulatedStyleId
=
0
;
if
(
maCurrState
.
maDashArray
.
size
()
&&
maCurrState
.
meStrokeType
!=
NONE
)
...
...
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