diff --git a/ChangeLog b/ChangeLog index 1c421f594..bf84a7298 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-17 Zsolt Foldvari + * src/ReportBase/_MenuOptions.py: Set SVN properties. + * src/docgen/GtkPrint.py: Round up paper size values received from + GtkContext. + 2007-09-16 Zsolt Foldvari * src/ReportBase/_ReportDialog.py: * src/glade/paper_settings.glade: diff --git a/src/ReportBase/_MenuOptions.py b/src/ReportBase/_MenuOptions.py index e75c0d167..81d35ba63 100644 --- a/src/ReportBase/_MenuOptions.py +++ b/src/ReportBase/_MenuOptions.py @@ -17,7 +17,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# $Id: $ +# $Id$ """ Abstracted option handling. diff --git a/src/docgen/GtkPrint.py b/src/docgen/GtkPrint.py index 3e3f4f992..17661b5ba 100644 --- a/src/docgen/GtkPrint.py +++ b/src/docgen/GtkPrint.py @@ -551,8 +551,8 @@ class GtkPrint(CairoDoc): """Setup environment for printing. """ # get page size - self.page_width = context.get_width() - self.page_height = context.get_height() + self.page_width = round(context.get_width()) + self.page_height = round(context.get_height()) # initialize pagination self.setup_paginate() @@ -579,8 +579,8 @@ class GtkPrint(CairoDoc): """ cr = context.get_cairo_context() layout = context.create_pango_layout() - width = context.get_width() - height = context.get_height() + width = round(context.get_width()) + height = round(context.get_height()) dpi_x = context.get_dpi_x() dpi_y = context.get_dpi_y() @@ -596,8 +596,8 @@ class GtkPrint(CairoDoc): # give a dummy cairo context to gtk.PrintContext, # PrintPreview will update it with the real one - width = int(context.get_width()) - height = int(context.get_height()) + width = int(round(context.get_width())) + height = int(round(context.get_height())) surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height) cr = cairo.Context(surface) context.set_cairo_context(cr, PRINTER_DPI, PRINTER_DPI)