mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
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:
parent
b21aaa24e9
commit
61b335c63a
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue