From 7315702a08eb3329a5c3a6a49c05e047a885945b Mon Sep 17 00:00:00 2001 From: sdteffen Date: Fri, 22 Aug 2003 01:10:46 +0000 Subject: [PATCH] * including scroll_tool.h * fixed loop initialization in paginate_gdiprint(); partial fix for bug #85831 - the scaling is still wrong --- app/disp_callbacks.c | 1 + app/paginate_gdiprint.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/disp_callbacks.c b/app/disp_callbacks.c index 4575ec55..05078cef 100644 --- a/app/disp_callbacks.c +++ b/app/disp_callbacks.c @@ -42,6 +42,7 @@ #include "magnify.h" #include "diamenu.h" #include "preferences.h" +#include "scroll_tool.h" /* This contains the point that was clicked to get this menu */ static Point object_menu_clicked_point; diff --git a/app/paginate_gdiprint.cpp b/app/paginate_gdiprint.cpp index e43380ba..6b647afa 100644 --- a/app/paginate_gdiprint.cpp +++ b/app/paginate_gdiprint.cpp @@ -113,7 +113,7 @@ paginate_gdiprint(Diagram *dia, DiaExportFilter* pExp, W32::HANDLE hDC) /* iterate through all the pages in the diagram */ for (y = inity, ypos = 0; y < extents->bottom; y += height, ypos++) - for (x = inity, xpos = 0; x < extents->right; x += width, xpos++) { + for (x = initx, xpos = 0; x < extents->right; x += width, xpos++) { Rectangle page_bounds; page_bounds.left = x; -- 2.11.4.GIT