Code

don't zoom when changing dpi
authorkeescook <keescook@users.sourceforge.net>
Sun, 30 Dec 2007 02:16:34 +0000 (02:16 +0000)
committerkeescook <keescook@users.sourceforge.net>
Sun, 30 Dec 2007 02:16:34 +0000 (02:16 +0000)
src/ui/dialog/print.cpp

index d1da361088165f2fdef43af15da9f1de1e44e109..4528fe65636c72385e86d95b7f0c9d332a61a791 100644 (file)
@@ -58,8 +58,8 @@ draw_page (GtkPrintOperation *operation,
 
             sp_export_png_file(junk->_doc, tmp_png.c_str(), 0.0, 0.0,
                 width, height,
-                (unsigned long)(width * dpi / PX_PER_IN),
-                (unsigned long)(height * dpi / PX_PER_IN),
+                (unsigned long)(width * PT_PER_IN / PX_PER_IN),
+                (unsigned long)(height * PT_PER_IN / PX_PER_IN),
                 dpi, dpi, bgcolor, NULL, NULL, true, NULL);
 
             // This doesn't seem to work: