summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2011-07-12 07:31:07 (GMT)
committerJiang Jiang <jiang.jiang@nokia.com>2011-07-12 08:11:30 (GMT)
commit693e39f3b630afa44cd1bd8d942825922a5d59fe (patch)
tree41c57cd9876bb94b4647527a84c4629d7383720c /src/gui
parent64dc31c660fd23ec77c51f406ba473a6ca0b3c13 (diff)
downloadQt-693e39f3b630afa44cd1bd8d942825922a5d59fe.zip
Qt-693e39f3b630afa44cd1bd8d942825922a5d59fe.tar.gz
Qt-693e39f3b630afa44cd1bd8d942825922a5d59fe.tar.bz2
Fix warning for uninitialized variable
Reviewed-by: Eskil
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/text/qtextengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp
index c900918..db50bdf 100644
--- a/src/gui/text/qtextengine.cpp
+++ b/src/gui/text/qtextengine.cpp
@@ -323,7 +323,7 @@ static QChar::Direction skipBoundryNeutrals(QScriptAnalysis *analysis,
const ushort *unicode, int length,
int &sor, int &eor, QBidiControl &control)
{
- QChar::Direction dir;
+ QChar::Direction dir = control.basicDirection();
int level = sor > 0 ? analysis[sor - 1].bidiLevel : control.level;
while (sor < length) {
dir = QChar::direction(unicode[sor]);