If lineRect is not valid getLineRect *never* will return a valid rect which will hangs application.
Details
Details
- Reviewers
danders mecir boemann - Group Reviewers
Calligra: 3.0 - Commits
- R8:890b3198f4d1: [textlayout] Do not enter infinite loop when line rect is not valid
Calligra Words now works with http://europass.cedefop.europa.eu/documents/curriculum-vitae/templates-instructions odt templates
Diff Detail
Diff Detail
- Repository
- R8 Calligra
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
libs/textlayout/RunAroundHelper.cpp | ||
---|---|---|
106 | By removing this the lineRect doesn't change when maxLineHeight changes (which iirc it does in getLineRect()) And yes i know there should have been unit tests alread (maybe you could add some pls) |
libs/textlayout/RunAroundHelper.cpp | ||
---|---|---|
106 | maxLineHeight is not changed, the code is same, i notice that creating new rect every time is significantly slower. |