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
aae05d17
Commit
aae05d17
authored
Apr 17, 2013
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed erasing problems
parent
3be48374
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
UBSvgSubsetAdaptor.cpp
src/adaptors/UBSvgSubsetAdaptor.cpp
+13
-12
No files found.
src/adaptors/UBSvgSubsetAdaptor.cpp
View file @
aae05d17
...
...
@@ -392,6 +392,7 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
mFileVersion
=
40100
;
// default to 4.1.0
UBGraphicsStrokesGroup
*
strokesGroup
=
0
;
UBGraphicsStroke
*
currentStroke
=
0
;
while
(
!
mXmlReader
.
atEnd
())
{
...
...
@@ -559,11 +560,6 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
{
polygonItem
->
setUuid
(
uuidFromSvg
);
if
(
strokesGroup
){
polygonItem
->
setTransform
(
strokesGroup
->
transform
());
strokesGroup
->
addToGroup
(
polygonItem
);
polygonItem
->
setStrokesGroup
(
strokesGroup
);
}
polygonItem
->
setData
(
UBGraphicsItemData
::
ItemLayerType
,
QVariant
(
UBItemLayerType
::
Graphic
));
...
...
@@ -571,10 +567,16 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
if
(
!
mStrokesList
.
contains
(
parentId
)){
group
=
new
UBGraphicsStrokesGroup
();
mStrokesList
.
insert
(
parentId
,
group
);
currentStroke
=
new
UBGraphicsStroke
();
}
else
group
=
mStrokesList
.
value
(
parentId
);
polygonItem
->
setTransform
(
group
->
transform
());
group
->
addToGroup
(
polygonItem
);
polygonItem
->
setStrokesGroup
(
group
);
polygonItem
->
setStroke
(
currentStroke
);
polygonItem
->
show
();
group
->
addToGroup
(
polygonItem
);
...
...
@@ -589,23 +591,22 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
foreach
(
UBGraphicsPolygonItem
*
polygonItem
,
polygonItems
)
{
if
(
strokesGroup
){
polygonItem
->
setTransform
(
strokesGroup
->
transform
());
strokesGroup
->
addToGroup
(
polygonItem
);
polygonItem
->
setStrokesGroup
(
strokesGroup
);
}
polygonItem
->
setData
(
UBGraphicsItemData
::
ItemLayerType
,
QVariant
(
UBItemLayerType
::
Graphic
));
UBGraphicsStrokesGroup
*
group
;
if
(
!
mStrokesList
.
contains
(
parentId
)){
group
=
new
UBGraphicsStrokesGroup
();
mStrokesList
.
insert
(
parentId
,
group
);
currentStroke
=
new
UBGraphicsStroke
();
}
else
group
=
mStrokesList
.
value
(
parentId
);
polygonItem
->
setTransform
(
group
->
transform
());
group
->
addToGroup
(
polygonItem
);
polygonItem
->
setStrokesGroup
(
group
);
polygonItem
->
setStroke
(
currentStroke
);
polygonItem
->
show
();
group
->
addToGroup
(
polygonItem
);
}
...
...
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