Home
Phabricator
Search
Log In
Paste
P212
Masterwork From Distant Lands
Active
Public
Actions
Authored by
dkazakov
on May 11 2018, 1:30 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/libs/ui/flake/kis_shape_layer.cc b/libs/ui/flake/kis_shape_layer.cc
index dcd5d12..86d1580 100644
--- a/libs/ui/flake/kis_shape_layer.cc
+++ b/libs/ui/flake/kis_shape_layer.cc
@@ -496,6 +496,9 @@ bool KisShapeLayer::saveShapesToStore(KoStore *store, QList<KoShape *> shapes, c
ENTER_FUNCTION() << ppVar(shape) << ppVar(shape->shapeId()) << ppVar(shape->parent());
}
+
+ std::stable_sort(shapes.begin(), shapes.end(), KoShape::compareShapeZIndex);
+
SvgWriter writer(shapes);
writer.save(storeDev, sizeInPt);
dkazakov
edited the content of this paste.
(Show Details)
May 11 2018, 1:30 PM
dkazakov
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
dkazakov
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment