[glom] minor fix of minor fix



commit bf9cfefef9a0cdddb21fd331d98e712068079bf3
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Oct 13 23:39:38 2011 +0200

    minor fix of minor fix

 glom/print_layout/print_layout_utils.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glom/print_layout/print_layout_utils.cc b/glom/print_layout/print_layout_utils.cc
index 8d5a6f2..68972fe 100644
--- a/glom/print_layout/print_layout_utils.cc
+++ b/glom/print_layout/print_layout_utils.cc
@@ -322,7 +322,7 @@ sharedptr<PrintLayout> create_standard(const Glib::RefPtr<const Gtk::PageSetup>&
   //y is probably _after_ the last item, not exactly at the bottom of the last item, so we subtract gap.
   //TODO: However, this might not be reliable,
   //so this could lead to an extra blank page.
-  const guint page_number = get_page_for_y(page_setup, units, y - gap);
+  const guint page_number = get_page_for_y(page_setup, units, y - GRID_GAP);
   if(page_number >= print_layout->get_page_count())
   {
     print_layout->set_page_count(page_number + 1);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]