Index: umlview.cpp
===================================================================
--- umlview.cpp	(revision 1266242)
+++ umlview.cpp	(working copy)
@@ -242,8 +242,8 @@
     uint left, right, top, bottom;
     QRect paper = pPrinter->paperRect();
     QRect page  = pPrinter->pageRect();
-    top = paper.top() - page.top();
-    left = paper.left() - page.left();
+    top = page.top() - paper.top();
+    left = page.left() - paper.left();
     bottom = paper.bottom() - page.bottom();
     right = paper.right() - page.right();
     DEBUG(DBG_SRC) << "margin: top=" << QString().setNum(top) << " left=" << QString().setNum(left)
