diff options
| author | David 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 |
| commit | 5ece992a297ec8fb400a32f4c8dbb34c592236a8 (patch) | |
| tree | bd76aa26742b5e1565f1de10496daea4995b4d68 /src/document.cpp | |
| parent | Provide a toggle in the document properties to optionally turn off (diff) | |
| download | inkscape-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 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 7 |
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; } /** |
