Make sure layoutData exist before checking for string direction
authorJiang Jiang <jiang.jiang@nokia.com>
Wed, 27 Apr 2011 06:47:46 +0000 (08:47 +0200)
committerJiang Jiang <jiang.jiang@nokia.com>
Fri, 29 Apr 2011 09:02:24 +0000 (11:02 +0200)
commitd64460fffb488eb2e7b90df58d3891338bad7948
treed6860acbef0a09fabae2f8c7b98615578a32b044
parent044e7602ae72889f363d688dbe0d73cec5f0636a
Make sure layoutData exist before checking for string direction

Otherwise accessing that through QTextEngine::alignLine may cause crash.

Reviewed-by: Samuel Rødal
(cherry picked from commit dcdb62c3d1a76d951c4b65bc1b1bd930e2ad14ec)
src/gui/text/qtextengine.cpp