summaryrefslogtreecommitdiffstats
path: root/src/kernel/qsimplerichtext.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-12 19:13:32 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-12 19:13:32 -0600
commit083d32559ddb247bcc18a22a525a416c8ec743b5 (patch)
treec752834f6dfb494bdfd2d069c68faa1acecf63af /src/kernel/qsimplerichtext.cpp
parentbad353a20d02b625587d9ca166518aa6287d9dbc (diff)
downloadqt3-083d32559ddb247bcc18a22a525a416c8ec743b5.tar.gz
qt3-083d32559ddb247bcc18a22a525a416c8ec743b5.zip
Fix a few more build warnings
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 9712b90..8974037 100644
--- a/src/kernel/qsimplerichtext.cpp
+++ b/src/kernel/qsimplerichtext.cpp
@@ -244,8 +244,8 @@ void QSimpleRichText::setWidth( QPainter *p, int w )
if ( w == d->cachedWidth && d->cachedWidthWithPainter )
return;
d->doc->formatter()->setAllowBreakInWords( d->doc->isPageBreakEnabled() ||
- p && p->device() &&
- p->device()->devType() == QInternal::Printer );
+ (p && p->device() &&
+ (p->device()->devType() == QInternal::Printer)) );
p->save();
d->cachedWidth = w;
d->cachedWidthWithPainter = TRUE;