summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@nokia.com>2011-02-02 18:30:28 +0100
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>2011-02-02 18:30:28 +0100
commitf56ae0fab81179097fb362a9adf915289710db5e (patch)
tree2ecb67beb1adefab7cff28559771f79f568e2157
parente808b69c4a1671f4db652ac3a232e1b023967b09 (diff)
Fixed uninitilized values for textAlign and textBaseline
-rw-r--r--src/context2d.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/context2d.cpp b/src/context2d.cpp
index 0ae52b8..9371462 100644
--- a/src/context2d.cpp
+++ b/src/context2d.cpp
@@ -1034,6 +1034,8 @@ void Context2D::reset()
m_state.shadowBlur = 0;
m_state.shadowColor = qRgba(0, 0, 0, 0);
m_state.flags = AllIsFullOfDirt;
+ m_state.textAlign = Start;
+ m_state.textBaseline = Alphabetic;
clear();
}