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
b213b2d8
Commit
b213b2d8
authored
Jan 21, 2017
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Save the transform matrix of group items to SVG"
This reverts commit
d7b73a16
.
parent
064b5a99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
UBSvgSubsetAdaptor.cpp
src/adaptors/UBSvgSubsetAdaptor.cpp
+0
-14
No files found.
src/adaptors/UBSvgSubsetAdaptor.cpp
View file @
b213b2d8
...
@@ -938,8 +938,6 @@ UBGraphicsGroupContainerItem* UBSvgSubsetAdaptor::UBSvgSubsetReader::readGroup()
...
@@ -938,8 +938,6 @@ UBGraphicsGroupContainerItem* UBSvgSubsetAdaptor::UBSvgSubsetReader::readGroup()
if
(
mStrokesList
.
contains
(
id
))
if
(
mStrokesList
.
contains
(
id
))
shouldSkipSubElements
=
true
;
shouldSkipSubElements
=
true
;
QStringRef
svgTransform
=
mXmlReader
.
attributes
().
value
(
"transform"
);
mXmlReader
.
readNext
();
mXmlReader
.
readNext
();
while
(
!
mXmlReader
.
atEnd
())
while
(
!
mXmlReader
.
atEnd
())
{
{
...
@@ -983,12 +981,6 @@ UBGraphicsGroupContainerItem* UBSvgSubsetAdaptor::UBSvgSubsetReader::readGroup()
...
@@ -983,12 +981,6 @@ UBGraphicsGroupContainerItem* UBSvgSubsetAdaptor::UBSvgSubsetReader::readGroup()
group
->
destroy
(
false
);
group
->
destroy
(
false
);
}
}
}
}
if
(
!
svgTransform
.
isNull
())
{
QMatrix
itemMatrix
=
fromSvgTransform
(
svgTransform
.
toString
());
group
->
setMatrix
(
itemMatrix
);
}
return
group
;
return
group
;
}
}
...
@@ -1354,10 +1346,6 @@ bool UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistScene(UBDocumentProxy* proxy,
...
@@ -1354,10 +1346,6 @@ bool UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistScene(UBDocumentProxy* proxy,
if
(
curElement
.
hasAttribute
(
"locked"
)){
if
(
curElement
.
hasAttribute
(
"locked"
)){
mXmlWriter
.
writeAttribute
(
UBSettings
::
uniboardDocumentNamespaceUri
,
"locked"
,
curElement
.
attribute
(
"locked"
));
mXmlWriter
.
writeAttribute
(
UBSettings
::
uniboardDocumentNamespaceUri
,
"locked"
,
curElement
.
attribute
(
"locked"
));
}
}
if
(
curElement
.
hasAttribute
(
"transform"
))
mXmlWriter
.
writeAttribute
(
"transform"
,
curElement
.
attribute
(
"transform"
));
QDomElement
curSubElement
=
curElement
.
firstChildElement
();
QDomElement
curSubElement
=
curElement
.
firstChildElement
();
while
(
!
curSubElement
.
isNull
())
{
while
(
!
curSubElement
.
isNull
())
{
if
(
curSubElement
.
hasAttribute
(
aId
))
{
if
(
curSubElement
.
hasAttribute
(
aId
))
{
...
@@ -1403,8 +1391,6 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistGroupToDom(QGraphicsItem *gro
...
@@ -1403,8 +1391,6 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistGroupToDom(QGraphicsItem *gro
else
else
curGroupElement
.
setAttribute
(
"locked"
,
xmlFalse
);
curGroupElement
.
setAttribute
(
"locked"
,
xmlFalse
);
}
}
curGroupElement
.
setAttribute
(
"transform"
,
toSvgTransform
(
groupItem
->
sceneMatrix
()));
curParent
->
appendChild
(
curGroupElement
);
curParent
->
appendChild
(
curGroupElement
);
foreach
(
QGraphicsItem
*
item
,
groupItem
->
childItems
())
{
foreach
(
QGraphicsItem
*
item
,
groupItem
->
childItems
())
{
QUuid
tmpUuid
=
UBGraphicsScene
::
getPersonalUuid
(
item
);
QUuid
tmpUuid
=
UBGraphicsScene
::
getPersonalUuid
(
item
);
...
...
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