From 3c402d24e7fdce198befa42833574e802bfcd0e5 Mon Sep 17 00:00:00 2001 From: Alex Leone Date: Mon, 31 May 2010 17:06:11 -0700 Subject: Makes the "Fit Page to Selection" margin options load from the opened file. (Bug #499942) Fixed bugs: - https://launchpad.net/bugs/499942 (bzr r9462) --- src/document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/document.cpp') 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); -- cgit v1.2.3