diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2014-05-26 11:37:44 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2014-05-26 11:37:44 +0000 |
| commit | d2d46b5e9228a21330720e7c8ccce353ced02b72 (patch) | |
| tree | 475870c57d1e2e55f9f27e79083d9648a98ab5e9 /src/extension/internal/gdkpixbuf-input.cpp | |
| parent | Update for working Win64 GDB (devlibs update required) (diff) | |
| download | inkscape-d2d46b5e9228a21330720e7c8ccce353ced02b72.tar.gz inkscape-d2d46b5e9228a21330720e7c8ccce353ced02b72.zip | |
Convert from 90px to inch to 96px to inch per SVG (CSS) specification.
(bzr r13341.1.39)
Diffstat (limited to 'src/extension/internal/gdkpixbuf-input.cpp')
| -rw-r--r-- | src/extension/internal/gdkpixbuf-input.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/extension/internal/gdkpixbuf-input.cpp b/src/extension/internal/gdkpixbuf-input.cpp index a384c7bde..da179bee0 100644 --- a/src/extension/internal/gdkpixbuf-input.cpp +++ b/src/extension/internal/gdkpixbuf-input.cpp @@ -87,11 +87,11 @@ GdkpixbufInput::open(Inkscape::Extension::Input *mod, char const *uri) ir = new ImageResolution(uri); } if (ir && ir->ok()) { - xscale = 900.0 / floor(10.*ir->x() + .5); // round-off to 0.1 dpi - yscale = 900.0 / floor(10.*ir->y() + .5); + xscale = 960.0 / floor(10.*ir->x() + .5); // round-off to 0.1 dpi + yscale = 960.0 / floor(10.*ir->y() + .5); } else { - xscale = 90.0 / defaultxdpi; - yscale = 90.0 / defaultxdpi; + xscale = 96.0 / defaultxdpi; + yscale = 96.0 / defaultxdpi; } width *= xscale; |
