From: "Lubomir I. Ivanov" <neolit...@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit...@gmail.com> --- qt-ui/printlayout.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp index 318ba4e..d6c27b5 100644 --- a/qt-ui/printlayout.cpp +++ b/qt-ui/printlayout.cpp @@ -137,9 +137,6 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn) painter.setRenderHint(QPainter::Antialiasing); painter.setRenderHint(QPainter::SmoothPixmapTransform); - QPicture pic; - QPainter picPainter; - // setup the profile widget QPointer<ProfileWidget2> profile = MainWindow::instance()->graphics(); const int profileFrameStyle = profile->frameStyle(); @@ -209,6 +206,8 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn) painter.setTransform(origTransform); // draw a table + QPicture pic; + QPainter picPainter; painter.translate((scaledW + padW) * col, (scaledH + padH) * row + yOffsetTable); model.setDive(dive); picPainter.begin(&pic); -- 1.7.11.msysgit.0 _______________________________________________ subsurface mailing list subsurface@hohndel.org http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface