From 61b335c63a430a34330246d21af12b1febbc1dc6 Mon Sep 17 00:00:00 2001 From: JKlingen Date: Wed, 18 Jul 2012 17:31:01 +0000 Subject: [PATCH] Hopefully fixed problem with landscape prints [3529139], will need to test this tomorrow, though. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1954 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Helpers/PrintHelper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Greenshot/Helpers/PrintHelper.cs b/Greenshot/Helpers/PrintHelper.cs index 0ee466d0e..eddad90e7 100644 --- a/Greenshot/Helpers/PrintHelper.cs +++ b/Greenshot/Helpers/PrintHelper.cs @@ -174,6 +174,11 @@ namespace Greenshot.Helpers { // Get a rectangle representing the printable Area RectangleF pageRect = e.PageSettings.PrintableArea; + if(e.PageSettings.Landscape) { + float origWidth = pageRect.Width; + pageRect.Width = pageRect.Height; + pageRect.Height = origWidth; + } // Subtract the dateString height from the available area, this way the area stays free pageRect.Height -= footerStringHeight;