From 4db351194ebd94ffc595918d08e828fe529d830f Mon Sep 17 00:00:00 2001 From: keescook Date: Sun, 30 Dec 2007 00:40:12 +0000 Subject: [PATCH] adjust cairo bitmap origin offset fixup --- src/ui/dialog/print.cpp | 2 +- src/ui/dialog/print.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/dialog/print.cpp b/src/ui/dialog/print.cpp index 3c6f9de4c..3021b84b8 100644 --- a/src/ui/dialog/print.cpp +++ b/src/ui/dialog/print.cpp @@ -89,7 +89,7 @@ Print::on_draw_page (const Glib::RefPtr &context, int page_nr Cairo::RefPtr 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 (); diff --git a/src/ui/dialog/print.h b/src/ui/dialog/print.h index fb8876dc0..ee0d97da7 100644 --- a/src/ui/dialog/print.h +++ b/src/ui/dialog/print.h @@ -13,7 +13,7 @@ #define INKSCAPE_UI_DIALOG_PRINT_H #include -#include // GtkMM printoperation +#include // GtkMM #include // Gtk #include "desktop.h" -- 2.30.2