[CREATE] [calligra] krita/ui/openrastertk: Update to latest version of ORA Spec
Boudewijn Rempt
boud at valdyas.org
Mon Mar 26 06:27:48 PDT 2012
Git commit 4d4cc0ee7154fec36ff10298c6789e3002b3de9e by Boudewijn Rempt.
Committed on 26/03/2012 at 15:19.
Pushed by rempt into branch 'master'.
Update to latest version of ORA Spec
CCMAIL:a.t.chadwick at gmail.com
CCMAIL:create at lists.freedesktop.org
M +2 -2 krita/ui/openrastertk/kis_open_raster_stack_load_visitor.cpp
M +2 -2 krita/ui/openrastertk/kis_open_raster_stack_save_visitor.cpp
http://commits.kde.org/calligra/4d4cc0ee7154fec36ff10298c6789e3002b3de9e
diff --git a/krita/ui/openrastertk/kis_open_raster_stack_load_visitor.cpp b/krita/ui/openrastertk/kis_open_raster_stack_load_visitor.cpp
index 152fd9f..9f994cd 100644
--- a/krita/ui/openrastertk/kis_open_raster_stack_load_visitor.cpp
+++ b/krita/ui/openrastertk/kis_open_raster_stack_load_visitor.cpp
@@ -116,9 +116,9 @@ void KisOpenRasterStackLoadVisitor::loadLayerInfo(const QDomElement& elem, KisLa
layer->setVisible(true);
}
if (elem.hasAttribute("edit-locked")) {
- layer->setUserLocked(true);
+ layer->setUserLocked(elem.attribute("edit-locked") == "true");
}
- if (elem.hasAttribute("selected")) {
+ if (elem.hasAttribute("selected") && elem.attribute("selected") == "true") {
d->activeNodes.append(layer);
}
diff --git a/krita/ui/openrastertk/kis_open_raster_stack_save_visitor.cpp b/krita/ui/openrastertk/kis_open_raster_stack_save_visitor.cpp
index a4b9d22..5340e4d 100644
--- a/krita/ui/openrastertk/kis_open_raster_stack_save_visitor.cpp
+++ b/krita/ui/openrastertk/kis_open_raster_stack_save_visitor.cpp
@@ -59,10 +59,10 @@ void KisOpenRasterStackSaveVisitor::saveLayerInfo(QDomElement& elt, KisLayer* la
elt.setAttribute("opacity", QString().setNum(layer->opacity() / 255.0));
elt.setAttribute("visibility", layer->visible() ? "visible" : "hidden");
if (layer->userLocked()) {
- elt.setAttribute("edit-locked", "edit-locked");
+ elt.setAttribute("edit-locked", "true");
}
if (d->activeNodes.contains(layer)) {
- elt.setAttribute("selected", "selected");
+ elt.setAttribute("selected", "true");
}
QString compop = layer->compositeOpId();
if (layer->compositeOpId() == COMPOSITE_CLEAR) compop = "svg:clear";
More information about the CREATE
mailing list