summaryrefslogtreecommitdiffstats
path: root/src/kernel/qsimplerichtext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qsimplerichtext.cpp')
-rw-r--r--src/kernel/qsimplerichtext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/qsimplerichtext.cpp b/src/kernel/qsimplerichtext.cpp
index 20bea6af4..e9fd7f1d4 100644
--- a/src/kernel/qsimplerichtext.cpp
+++ b/src/kernel/qsimplerichtext.cpp
@@ -244,8 +244,8 @@ void TQSimpleRichText::setWidth( TQPainter *p, int w )
if ( w == d->cachedWidth && d->cachedWidthWithPainter )
return;
d->doc->formatter()->setAllowBreakInWords( d->doc->isPageBreakEnabled() ||
- p && p->device() &&
- p->device()->devType() == TQInternal::Printer );
+ (p && p->device() &&
+ (p->device()->devType() == TQInternal::Printer)) );
p->save();
d->cachedWidth = w;
d->cachedWidthWithPainter = TRUE;