diff options
author | Jens Bache-Wiig <[email protected]> | 2011-02-03 15:47:03 +0100 |
---|---|---|
committer | Jens Bache-Wiig <[email protected]> | 2011-02-03 15:47:03 +0100 |
commit | a7afc8f332bdfdb02ba0858187e17e36883c8a03 (patch) | |
tree | 5305e365ead1bd0f5bccff58c5a25d8452e56508 | |
parent | f56ae0fab81179097fb362a9adf915289710db5e (diff) |
-rw-r--r-- | src/context2d.cpp | 2 |
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) |