From 5ce0632beb76d3afc364b4e2c8ceb7b8f2ada022 Mon Sep 17 00:00:00 2001 From: xavier Date: Sun, 5 Aug 2012 00:32:39 +0000 Subject: [PATCH] Fixed full page restore. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1921 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/diagramprintdialog.cpp | 2 +- sources/qetprintpreviewdialog.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/diagramprintdialog.cpp b/sources/diagramprintdialog.cpp index 972e329ab..2c6164dbc 100644 --- a/sources/diagramprintdialog.cpp +++ b/sources/diagramprintdialog.cpp @@ -587,7 +587,7 @@ void DiagramPrintDialog::loadPageSetupForCurrentPrinter() { if (conv_ok && value != -1.0) margins[i] = value; } printer_ -> setPageMargins(margins[0], margins[1], margins[2], margins[3], QPrinter::Millimeter); - printer_ -> setFullPage(settings.setValue("fullpage", "false") == "true"); + printer_ -> setFullPage(settings.value("fullpage", "false").toString() == "true"); } /** diff --git a/sources/qetprintpreviewdialog.cpp b/sources/qetprintpreviewdialog.cpp index 4a16d96a6..e162516d3 100644 --- a/sources/qetprintpreviewdialog.cpp +++ b/sources/qetprintpreviewdialog.cpp @@ -234,6 +234,7 @@ void QETPrintPreviewDialog::build() { print_options_box_= new QGroupBox(tr("Options d'impression")); use_full_page_ = new QCheckBox(tr("Utiliser toute la feuille")); + use_full_page_ -> setChecked(printer_ -> fullPage()); use_full_page_label_ = new QLabel(tr( "Si cette option est coch\351e, les marges de la feuille seront " "ignor\351es et toute sa surface sera utilis\351e pour l'impression. "