summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorMichael G. Sloan <mgsloan@gmail.com>2006-08-26 01:31:22 +0000
committermgsloan <mgsloan@users.sourceforge.net>2006-08-26 01:31:22 +0000
commit36a1242bc96b3afee539421ec2c38d9934dd5095 (patch)
tree0148b856984f87a8229675a65753d5ca451d1565 /src/sp-object.cpp
parentFixed a crash in modifying filter parameters in XML editor. (diff)
downloadinkscape-36a1242bc96b3afee539421ec2c38d9934dd5095.tar.gz
inkscape-36a1242bc96b3afee539421ec2c38d9934dd5095.zip
gboolean -> bool conversion commit 1. Modifies code to do with getting the undo system to ignore actions, as well as
SVG/XML save/load. Shouldn't cause problems though. (bzr r1639)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index 62a442d0a..b16cd9a1a 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -825,10 +825,10 @@ sp_object_invoke_build(SPObject *object, SPDocument *document, Inkscape::XML::No
/* Redefine ID, if required */
if ((id == NULL) || (strcmp(id, realid) != 0)) {
- gboolean undo_sensitive=sp_document_get_undo_sensitive(document);
- sp_document_set_undo_sensitive(document, FALSE);
+ bool saved = sp_document_get_undo_sensitive(document);
+ sp_document_set_undo_sensitive(document, false);
object->repr->setAttribute("id", realid);
- sp_document_set_undo_sensitive(document, undo_sensitive);
+ sp_document_set_undo_sensitive(document, saved);
}
}
} else {