summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorDavid Mathog <mathog@caltech.edu>2014-03-13 20:55:24 +0000
committer~suv <suv-sf@users.sourceforge.net>2014-03-13 20:55:24 +0000
commit5ece992a297ec8fb400a32f4c8dbb34c592236a8 (patch)
treebd76aa26742b5e1565f1de10496daea4995b4d68 /src/document.cpp
parentProvide a toggle in the document properties to optionally turn off (diff)
downloadinkscape-5ece992a297ec8fb400a32f4c8dbb34c592236a8.tar.gz
inkscape-5ece992a297ec8fb400a32f4c8dbb34c592236a8.zip
Fix gradient position on document import (bug #1283193)
Fixed bugs: - https://launchpad.net/bugs/1283193 (bzr r13145)
Diffstat (limited to '')
-rw-r--r--src/document.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 4756110f6..dc7ed254c 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -1133,12 +1133,11 @@ static gint
sp_document_idle_handler(gpointer data)
{
SPDocument *doc = static_cast<SPDocument *>(data);
- if (doc->_updateDocument()) {
+ bool status = !doc->_updateDocument(); // method TRUE if it does NOT need further modification, so invert
+ if (!status) {
doc->modified_id = 0;
- return false;
- } else {
- return true;
}
+ return status;
}
/**