summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@nokia.com>2011-02-03 15:47:03 +0100
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>2011-02-03 15:47:03 +0100
commita7afc8f332bdfdb02ba0858187e17e36883c8a03 (patch)
tree5305e365ead1bd0f5bccff58c5a25d8452e56508
parentf56ae0fab81179097fb362a9adf915289710db5e (diff)
Initialize offsetHEADmaster
-rw-r--r--src/context2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context2d.cpp b/src/context2d.cpp
index 9371462..b18dd34 100644
--- a/src/context2d.cpp
+++ b/src/context2d.cpp
@@ -664,7 +664,7 @@ int Context2D::baseLineOffset(Context2D::TextBaseLine value, const QFontMetrics
int Context2D::textAlignOffset(Context2D::TextAlign value, const QFontMetrics &metrics, const QString &text)
{
- int offset;
+ int offset = 0;
if (value == Context2D::Start)
value = qApp->layoutDirection() == Qt::LeftToRight ? Context2D::Left : Context2D::Right;
else if (value == Context2D::End)