summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-22 08:50:22 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-22 09:17:23 (GMT)
commitf25f7a2a19ba4c21b7a5d9fee02a9ae71c9f60ef (patch)
tree7da95c2d3cea0962b35e89540d6ba82b4ba6aa53 /src/gui/text
parent756247373da4ea4142862df4156249230c013161 (diff)
downloadQt-f25f7a2a19ba4c21b7a5d9fee02a9ae71c9f60ef.zip
Qt-f25f7a2a19ba4c21b7a5d9fee02a9ae71c9f60ef.tar.gz
Qt-f25f7a2a19ba4c21b7a5d9fee02a9ae71c9f60ef.tar.bz2
Copy useBackendOptimization setting when QStaticText is detached
When the QStaticText is detached, we would previously reset the value of useBackendOptimizations rather than copy it into the new data. Reviewed-by: Gunnar
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qstatictext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qstatictext.cpp b/src/gui/text/qstatictext.cpp
index 623ee54..9313e65 100644
--- a/src/gui/text/qstatictext.cpp
+++ b/src/gui/text/qstatictext.cpp
@@ -356,7 +356,7 @@ QStaticTextPrivate::QStaticTextPrivate()
QStaticTextPrivate::QStaticTextPrivate(const QStaticTextPrivate &other)
: text(other.text), font(other.font), maximumSize(other.maximumSize), matrix(other.matrix),
items(0), itemCount(0), glyphPool(0), positionPool(0), needsClipRect(false),
- useBackendOptimizations(false), textFormat(other.textFormat)
+ useBackendOptimizations(other.useBackendOptimizations), textFormat(other.textFormat)
{
ref = 1;
}