summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorAlex Leone <acleone~AT~gmail.com>2010-06-01 00:06:11 +0000
committerAlex Leone <acleone~AT~gmail.com>2010-06-01 00:06:11 +0000
commit3c402d24e7fdce198befa42833574e802bfcd0e5 (patch)
tree30ab3626c980134de384e37b6def483dab4726bc /src/document.cpp
parentJapanese translations updated by Masato HASHIMOTO (bug #514341) (diff)
downloadinkscape-3c402d24e7fdce198befa42833574e802bfcd0e5.tar.gz
inkscape-3c402d24e7fdce198befa42833574e802bfcd0e5.zip
Makes the "Fit Page to Selection" margin options load from the opened file. (Bug #499942)
Fixed bugs: - https://launchpad.net/bugs/499942 (bzr r9462)
Diffstat (limited to '')
-rw-r--r--src/document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 101c54e30..eff6d6e81 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -682,7 +682,7 @@ void SPDocument::fitToRect(Geom::Rect const &rect, bool with_margins)
margin_units = sp_unit_get_by_abbreviation(units_abbr);
}
if (margin_units == NULL) {
- margin_units = &sp_unit_get_by_id(SP_UNIT_PX);
+ margin_units = &px;
}
margin_top = getMarginLength(nv_repr, "fit-margin-top",
margin_units, &px, w, h, false);