Code

adjust cairo bitmap origin offset fixup
authorkeescook <keescook@users.sourceforge.net>
Sun, 30 Dec 2007 00:40:12 +0000 (00:40 +0000)
committerkeescook <keescook@users.sourceforge.net>
Sun, 30 Dec 2007 00:40:12 +0000 (00:40 +0000)
src/ui/dialog/print.cpp
src/ui/dialog/print.h

index 3c6f9de4cae9b8c60310e38286714d0e9d41885a..3021b84b873ce58bac911bce01e2054e7915d766 100644 (file)
@@ -89,7 +89,7 @@ Print::on_draw_page (const Glib::RefPtr<Gtk::PrintContext> &context, int page_nr
                 Cairo::RefPtr<Cairo::ImageSurface> png = Cairo::ImageSurface::create_from_png (tmp_png);
                 cairo_t *cr = context->get_cairo_context ()->cobj();
                 // FIXME: why is the origin offset??
-                cairo_set_source_surface(cr, png->cobj(), -20.0, -20.0);
+                cairo_set_source_surface(cr, png->cobj(), -16.0, -16.0);
             }
             context->get_cairo_context ()->paint ();
 
index fb8876dc0500376fa39f87ac36db0228a586d825..ee0d97da767d063d36d06b9fa97a3a059ba54577 100644 (file)
@@ -13,7 +13,7 @@
 #define INKSCAPE_UI_DIALOG_PRINT_H
 
 #include <glibmm/i18n.h>
-#include <gtkmm/printoperation.h> // GtkMM printoperation
+#include <gtkmm/printoperation.h> // GtkMM
 #include <gtk/gtkprintoperation.h> // Gtk
 
 #include "desktop.h"