ecere/gui/Window: (#789) Fixed snapshot extent using native decorations
authorJerome St-Louis <jerome@ecere.com>
Thu, 28 Jan 2016 13:48:33 +0000 (08:48 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 28 Jul 2016 21:35:15 +0000 (17:35 -0400)
ecere/src/gui/Window.ec
eda/libeda/src/ers.ec

index c0dd965..7000799 100644 (file)
@@ -7263,10 +7263,13 @@ public:
             clip.bottom += absPosition.y;
          }
 
-         clip.left += decorations ? 0 : clientStart.x;
-         clip.top += decorations ? 0 : clientStart.y;
-         clip.right += decorations ? 0 : clientStart.x;
-         clip.bottom += decorations ? 0 : clientStart.y;
+         if(!nativeDecorations)
+         {
+            clip.left += decorations ? 0 : clientStart.x;
+            clip.top += decorations ? 0 : clientStart.y;
+            clip.right += decorations ? 0 : clientStart.x;
+            clip.bottom += decorations ? 0 : clientStart.y;
+         }
 
          if(display && display.flags.flipping)
          {
index 8f63484..6548f86 100644 (file)
@@ -536,7 +536,7 @@ public class PrintedReport : ReportDestination
       if(pageCount && display)
          display.NextPage();
       lastPage = page;
-      page.anchor = { left = 0, top = 0, right = 0, bottom = 0};
+      page.anchor = { left = 0, top = 0, right = 0, bottom = 0 };
       page.master = this;
       page.parent = this;
       pageCount++;