diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-03-18 18:08:42 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2015-03-18 18:08:42 +0000 |
| commit | 0c67c166ce5fb0e447b5c957e9222610d9d0c559 (patch) | |
| tree | d10c904aed7d23568444776bda67b76cd574b36f /src/file.cpp | |
| parent | Added kaleidoscope mode (diff) | |
| parent | Latvian translation update (diff) | |
| download | inkscape-0c67c166ce5fb0e447b5c957e9222610d9d0c559.tar.gz inkscape-0c67c166ce5fb0e447b5c957e9222610d9d0c559.zip | |
update to trunk
(bzr r13708.1.18)
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/file.cpp b/src/file.cpp index 72516d776..f9e259fe2 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -288,6 +288,12 @@ bool sp_file_open(const Glib::ustring &uri, } if (doc) { + // Set viewBox if it doesn't exist + if (!doc->getRoot()->viewBox_set) { + DocumentUndo::setUndoSensitive(doc, false); + 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; |
