diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-10-10 12:08:35 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-10-10 12:08:35 +0000 |
| commit | c7f5c676fa15f59f5f78c934263539981a26bbd2 (patch) | |
| tree | 12eb2965e90018d418ed4b31a9a84c278dcefb98 /src/file.cpp | |
| parent | Added widget to to rotate (diff) | |
| download | inkscape-c7f5c676fa15f59f5f78c934263539981a26bbd2.tar.gz inkscape-c7f5c676fa15f59f5f78c934263539981a26bbd2.zip | |
Fix some canvas problems and refactorization
(bzr r15142.1.8)
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file.cpp b/src/file.cpp index 7c17a6158..5a51bbf52 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -259,8 +259,9 @@ bool sp_file_open(const Glib::ustring &uri, SPDesktop *desktop = SP_ACTIVE_DESKTOP; if (desktop) { desktop->setWaitingCursor(); + desktop->remove_temporary_canvasitem(sp_document_namedview(desktop->getDocument(), NULL)->page_border_rotated); } - + SPDocument *doc = NULL; bool cancelled = false; try { @@ -287,7 +288,6 @@ bool sp_file_open(const Glib::ustring &uri, doc->setViewBox(Geom::Rect::from_xywh(0, 0, doc->getWidth().value(doc->getDisplayUnit()), doc->getHeight().value(doc->getDisplayUnit()))); DocumentUndo::setUndoSensitive(doc, true); } - SPDocument *existing = desktop ? desktop->getDocument() : NULL; if (existing && existing->virgin && replace_empty) { |
