Use relative position to when getting line from layout.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Tue, 3 Apr 2012 23:59:58 +0000 (09:59 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 10 Apr 2012 09:57:25 +0000 (11:57 +0200)
commit5ef662bf5c13bc7767ba091e7ec432ba9ebcfebc
treeab09281ddf561f5daa030c4b4a411034005b6674
parentdf2adc4a45a94c332104ef4114a8d25da21f8c98
Use relative position to when getting line from layout.

textPos is the absolute position in the document, when querying an
individual layout use the position relative to the start of the layout.

Change-Id: Ic1d97fcc498051c99291357dba3303b3141ed502
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/quick/items/qquicktextnode.cpp