diff --git a/mainwindow.cc b/mainwindow.cc index b120755c..13b72033 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -3333,8 +3333,8 @@ void MainWindow::on_pageSetup_triggered() void MainWindow::on_printPreview_triggered() { - QPrinter printer; - QPrintPreviewDialog dialog( &printer, this ); +// QPrinter printer; + QPrintPreviewDialog dialog( &getPrinter(), this ); connect( &dialog, SIGNAL( paintRequested( QPrinter * ) ), this, SLOT( printPreviewPaintRequested( QPrinter * ) ) );