summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/text/qstatictext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/text/qstatictext.cpp b/src/gui/text/qstatictext.cpp
index d94b9a3..4daa40d 100644
--- a/src/gui/text/qstatictext.cpp
+++ b/src/gui/text/qstatictext.cpp
@@ -254,7 +254,8 @@ QString QStaticText::text() const
*/
void QStaticText::setUseBackendOptimizations(bool on)
{
- if (on == d_ptr->useBackendOptimizations)
+ if ((!on && !d_ptr->useBackendOptimizations)
+ || (on && d_ptr->useBackendOptimizations))
return;
detach();