diff options
| author | Michael G. Sloan <mgsloan@gmail.com> | 2006-08-26 01:31:22 +0000 |
|---|---|---|
| committer | mgsloan <mgsloan@users.sourceforge.net> | 2006-08-26 01:31:22 +0000 |
| commit | 36a1242bc96b3afee539421ec2c38d9934dd5095 (patch) | |
| tree | 0148b856984f87a8229675a65753d5ca451d1565 /src/document.cpp | |
| parent | Fixed a crash in modifying filter parameters in XML editor. (diff) | |
| download | inkscape-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/document.cpp')
| -rw-r--r-- | src/document.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/document.cpp b/src/document.cpp index 20bbeb73e..f403f3aad 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -308,7 +308,7 @@ sp_document_create(Inkscape::XML::Document *rdoc, inkscape_ref(); } - sp_document_set_undo_sensitive(document, TRUE); + sp_document_set_undo_sensitive(document, true); // reset undo key when selection changes, so that same-key actions on different objects are not coalesced if (!Inkscape::NSApplication::Application::getNewGui()) { @@ -549,8 +549,8 @@ void sp_document_set_uri(SPDocument *document, gchar const *uri) // Update saveable repr attributes. Inkscape::XML::Node *repr = sp_document_repr_root(document); // changing uri in the document repr must not be not undoable - gboolean saved = 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); if (document->base) repr->setAttribute("sodipodi:docbase", document->base); @@ -767,7 +767,7 @@ SPDocument::_updateDocument() sp_document_setup_viewport (this, &ctx); bool saved = sp_document_get_undo_sensitive(this); - sp_document_set_undo_sensitive(this, FALSE); + sp_document_set_undo_sensitive(this, false); this->root->updateDisplay((SPCtx *)&ctx, 0); |
