summaryrefslogtreecommitdiffstats
path: root/src/kernel/qprinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qprinter.cpp')
-rw-r--r--src/kernel/qprinter.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/kernel/qprinter.cpp b/src/kernel/qprinter.cpp
index 31e1ec4..0db6dce 100644
--- a/src/kernel/qprinter.cpp
+++ b/src/kernel/qprinter.cpp
@@ -973,13 +973,16 @@ QPrinter::PaperSource QPrinter::paperSource() const
*/
void QPrinter::setPrintRange( PrintRange range )
{
- if( range != AllPages )
+ if( range != AllPages ) {
if( range == Selection
- && !isOptionEnabled( PrintSelection ) )
+ && !isOptionEnabled( PrintSelection ) ) {
setOptionEnabled( PrintSelection, TRUE );
+ }
else if( range == PageRange
- && !isOptionEnabled( PrintPageRange ) )
+ && !isOptionEnabled( PrintPageRange ) ) {
setOptionEnabled( PrintPageRange, TRUE );
+ }
+ }
d->printRange = range;
}