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
This commit is contained in:
JKlingen 2012-07-18 17:31:01 +00:00
commit 61b335c63a

View file

@ -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;