diff options
| author | Matthew Petroff <matthew@mpetroff.net> | 2013-08-28 03:32:14 +0000 |
|---|---|---|
| committer | Matthew Petroff <matthew@mpetroff.net> | 2013-08-28 03:32:14 +0000 |
| commit | 3bfb610bb7719d49821fe5381ae449789c3cb968 (patch) | |
| tree | c6c221e0c7bfcc6399ee4aee360b7b1d4de3f896 /src/helper/pixbuf-ops.cpp | |
| parent | Use Quantity comparisons in PageSizer. (diff) | |
| download | inkscape-3bfb610bb7719d49821fe5381ae449789c3cb968.tar.gz inkscape-3bfb610bb7719d49821fe5381ae449789c3cb968.zip | |
Improve code readability.
(bzr r12475.1.9)
Diffstat (limited to 'src/helper/pixbuf-ops.cpp')
| -rw-r--r-- | src/helper/pixbuf-ops.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/pixbuf-ops.cpp b/src/helper/pixbuf-ops.cpp index db7b73e34..a53da5bba 100644 --- a/src/helper/pixbuf-ops.cpp +++ b/src/helper/pixbuf-ops.cpp @@ -121,7 +121,7 @@ GdkPixbuf *sp_generate_internal_bitmap(SPDocument *doc, gchar const */*filename* origin[Geom::X] = origin[Geom::X] + (screen[Geom::X].extent() * ((1 - padding) / 2)); origin[Geom::Y] = origin[Geom::Y] + (screen[Geom::Y].extent() * ((1 - padding) / 2)); - Geom::Scale scale( (xdpi / Inkscape::Util::Quantity::convert(1, "in", "px")), (ydpi / Inkscape::Util::Quantity::convert(1, "in", "px"))); + Geom::Scale scale(Inkscape::Util::Quantity::convert(xdpi, "px", "in"), Inkscape::Util::Quantity::convert(ydpi, "px", "in")); Geom::Affine affine = scale * Geom::Translate(-origin * scale); /* Create ArenaItems and set transform */ |
