summaryrefslogtreecommitdiff
path: root/cad/boolean/patches/patch-apps_edit_src_drivers_printer.cpp
blob: 2c2877f22dff8f0b23a6038816efc69421a46849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-apps_edit_src_drivers_printer.cpp,v 1.1 2012/10/20 22:03:01 joerg Exp $

--- apps/edit/src/drivers/printer.cpp.orig	2012-10-20 12:02:42.000000000 +0000
+++ apps/edit/src/drivers/printer.cpp
@@ -87,7 +87,8 @@ bool PrintDriver::OnPrintPage(int)
       // Multiply the points with the relative matrix
       for (int i = 0; i < 4; i++)
       {
-         corners[i].Transform(&GLOB->SCRDRV->GetInverseMappingMatrix());
+         wxTransformMatrix tmp(GLOB->SCRDRV->GetInverseMappingMatrix());
+         corners[i].Transform(&tmp);
       }
       x = (int) corners[0].GetX();
       y = (int) corners[0].GetY();