<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi, <br>
    in UMLView::print(QPrinter *pPrinter, QPainter & pPainter) there
    is a wrong border calculation, which is fixed by the appended patch.
    <br>
    Some details:  In the above mentioned method the borders are
    calulcated from current QPrinters settings <br>
    ...<br>
    >    uint left, right, top, bottom;<br>
        QRect paper = pPrinter->paperRect();<br>
        QRect page  = pPrinter->pageRect();<br>
    >    top = paper.top() - page.top();<br>
    >    left = paper.left() - page.left();<br>
        bottom = paper.bottom() - page.bottom();<br>
        right = paper.right() - page.right();<br>
    <br>
    QPrinters doc says about  <span class="type"></span> <span
      class="type"><a
        href="http://doc.qt.nokia.com/4.7-snapshot/qrect.html">QRect</a></span>
    QPrinter::<span class="name">paperRect</span> () const <br>
    <br>
    "Returns the paper's rectangle; this is usually larger than the <a
      href="http://doc.qt.nokia.com/4.7-snapshot/qprinter.html#pageRect">pageRect</a>()."<br>
    <br>
    this means that in the above mentioned line  <br>
        top = paper.top() - page.top(); <br>
    <br>
    top will be a very high positive value (tested on windows with msvc)
    if paper.top() is smaller than page.top() which is usual the
    default. <br>
    <br>
    If there are no objectives, i would commit this patch. <br>
    <br>
    Regards<br>
     Ralf <br>
    <br>
  </body>
</html>