Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
ad18a5f4
Commit
ad18a5f4
authored
May 23, 2012
by
Anatoly Mihalchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SANKORE-576
First, lost of text formating. New format and then lost of text.
parent
d822dc73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
UBSvgSubsetAdaptor.cpp
src/adaptors/UBSvgSubsetAdaptor.cpp
+16
-16
No files found.
src/adaptors/UBSvgSubsetAdaptor.cpp
View file @
ad18a5f4
...
@@ -2314,6 +2314,22 @@ UBGraphicsTextItem* UBSvgSubsetAdaptor::UBSvgSubsetReader::textItemFromSvg()
...
@@ -2314,6 +2314,22 @@ UBGraphicsTextItem* UBSvgSubsetAdaptor::UBSvgSubsetReader::textItemFromSvg()
QStringRef
ubFillOnDarkBackground
=
mXmlReader
.
attributes
().
value
(
mNamespaceUri
,
"fill-on-dark-background"
);
QStringRef
ubFillOnDarkBackground
=
mXmlReader
.
attributes
().
value
(
mNamespaceUri
,
"fill-on-dark-background"
);
QStringRef
ubFillOnLightBackground
=
mXmlReader
.
attributes
().
value
(
mNamespaceUri
,
"fill-on-light-background"
);
QStringRef
ubFillOnLightBackground
=
mXmlReader
.
attributes
().
value
(
mNamespaceUri
,
"fill-on-light-background"
);
if
(
!
ubFillOnDarkBackground
.
isNull
())
{
QColor
color
;
color
.
setNamedColor
(
ubFillOnDarkBackground
.
toString
());
if
(
!
color
.
isValid
())
color
=
Qt
::
white
;
textItem
->
setColorOnDarkBackground
(
color
);
}
if
(
!
ubFillOnLightBackground
.
isNull
())
{
QColor
color
;
color
.
setNamedColor
(
ubFillOnLightBackground
.
toString
());
if
(
!
color
.
isValid
())
color
=
Qt
::
black
;
textItem
->
setColorOnLightBackground
(
color
);
}
QString
text
;
QString
text
;
while
(
!
(
mXmlReader
.
isEndElement
()
&&
(
mXmlReader
.
name
()
==
"font"
||
mXmlReader
.
name
()
==
"foreignObject"
)))
while
(
!
(
mXmlReader
.
isEndElement
()
&&
(
mXmlReader
.
name
()
==
"font"
||
mXmlReader
.
name
()
==
"foreignObject"
)))
...
@@ -2382,22 +2398,6 @@ UBGraphicsTextItem* UBSvgSubsetAdaptor::UBSvgSubsetReader::textItemFromSvg()
...
@@ -2382,22 +2398,6 @@ UBGraphicsTextItem* UBSvgSubsetAdaptor::UBSvgSubsetReader::textItemFromSvg()
textItem
->
setDefaultTextColor
(
textColor
);
textItem
->
setDefaultTextColor
(
textColor
);
}
}
if
(
!
ubFillOnDarkBackground
.
isNull
())
{
QColor
color
;
color
.
setNamedColor
(
ubFillOnDarkBackground
.
toString
());
if
(
!
color
.
isValid
())
color
=
Qt
::
white
;
textItem
->
setColorOnDarkBackground
(
color
);
}
if
(
!
ubFillOnLightBackground
.
isNull
())
{
QColor
color
;
color
.
setNamedColor
(
ubFillOnLightBackground
.
toString
());
if
(
!
color
.
isValid
())
color
=
Qt
::
black
;
textItem
->
setColorOnLightBackground
(
color
);
}
while
(
!
(
mXmlReader
.
isEndElement
()
&&
mXmlReader
.
name
()
==
"font"
))
{
while
(
!
(
mXmlReader
.
isEndElement
()
&&
mXmlReader
.
name
()
==
"font"
))
{
if
(
mXmlReader
.
hasError
())
{
if
(
mXmlReader
.
hasError
())
{
break
;
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