diff options
author | Vitaly Fanaskov <vitaly.fanaskov@qt.io> | 2018-11-30 16:10:37 +0100 |
---|---|---|
committer | Vitaly Fanaskov <vitaly.fanaskov@qt.io> | 2018-12-07 16:31:19 +0000 |
commit | 0088f760439b4f6f98342d3e22ecadbb13aaf06a (patch) | |
tree | a5ecd4f55957bbdb44efc917df1e9b0bca4f4d07 /dist/changes-1.39-19980327 | |
parent | 4ee59cf96d80c752ebfa127792d65d7b84abbd74 (diff) |
Fix inability to edit lines in QGraphicsTextItem when pageSize is set
Previous implementation relies on the fact that the only text document
with height -1 can grow or shrink vertically, and, hence, a bounding
rect should be updated under this circumstances. But method
QTextDocument::setPageSize might set a height different from -1, and
QGraphicsTextItem will be growing/shrinking vertically as well.
So, we have to relax condition to cover all use cases. Bounding rect
will be updated if new size is different from current size. This also
doesn't affect performance.
Fixes: QTBUG-55527
Change-Id: Id2c8e15d859aff9dde62c8ee14a6859c0c03f0d4
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'dist/changes-1.39-19980327')
0 files changed, 0 insertions, 0 deletions