diff options
| author | Alvin Penner <penner@vaxxine.com> | 2015-02-23 16:48:29 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2015-02-23 16:48:29 +0000 |
| commit | 48bd3fbe350866c1d94017e455a903f73e7abfb6 (patch) | |
| tree | b554534ceb12cc1b41b05b370b715c03db843b32 /src/file.cpp | |
| parent | fix scaling of letter-spacing and word-spacing. (Bug 772057) (diff) | |
| download | inkscape-48bd3fbe350866c1d94017e455a903f73e7abfb6.tar.gz inkscape-48bd3fbe350866c1d94017e455a903f73e7abfb6.zip | |
on a File->Open, set the viewBox if it did not previously exist, same as was done for File->New. (Bug 1239682)
Fixed bugs:
- https://launchpad.net/bugs/1239682
(bzr r13938)
Diffstat (limited to '')
| -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; |
