2007-09-17 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/ReportBase/_MenuOptions.py: Set SVN properties. * src/docgen/GtkPrint.py: Round up paper size values received from GtkContext. svn: r8984
This commit is contained in:
parent
99777f16b4
commit
2eea9723b9
@ -1,3 +1,8 @@
|
||||
2007-09-17 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||
* src/ReportBase/_MenuOptions.py: Set SVN properties.
|
||||
* src/docgen/GtkPrint.py: Round up paper size values received from
|
||||
GtkContext.
|
||||
|
||||
2007-09-16 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||
* src/ReportBase/_ReportDialog.py:
|
||||
* src/glade/paper_settings.glade:
|
||||
|
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user