diff options
-rw-r--r-- | qt-ui/printlayout.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp index 318ba4e0c..d6c27b597 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); |