Summary: | Handmade SVG file using list values for the x, y, dx, and dy values won't load right. | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | wolthera <griffinvalley> |
Component: | Tool/Text | Assignee: | Dmitry Kazakov <dimula73> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | halla |
Priority: | NOR | ||
Version: | git master (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/krita/3fb3824e436df7a997c02f3ab59472be9e114de2 | Version Fixed In: | |
Sentry Crash Report: |
Description
wolthera
2018-02-27 11:41:51 UTC
Oups, after my recent fix for text bounding rect, this test file just crashes Krita :( Git commit 7317b69c9464fe3600cf672ebea1cb18ac97bfe1 by Dmitry Kazakov. Committed on 17/03/2018 at 07:14. Pushed by dkazakov into branch 'master'. Fix crash when a format range wraps a fully whitespace run of symbols M +5 -0 libs/flake/text/KoSvgTextShape.cpp https://commits.kde.org/krita/7317b69c9464fe3600cf672ebea1cb18ac97bfe1 After the crash is fixed it is just a bug, not a release blocker anymore Git commit 72c4f497f733ee85a620874f00234c54988d5aa0 by Boudewijn Rempt, on behalf of Dmitry Kazakov. Committed on 17/03/2018 at 08:53. Pushed by rempt into branch 'krita/4.0'. Fix crash when a format range wraps a fully whitespace run of symbols (cherry picked from commit 7317b69c9464fe3600cf672ebea1cb18ac97bfe1) M +5 -0 libs/flake/text/KoSvgTextShape.cpp https://commits.kde.org/krita/72c4f497f733ee85a620874f00234c54988d5aa0 Git commit c764a68e1df604e7ccd453bac4ccf23182038479 by Dmitry Kazakov. Committed on 19/03/2018 at 12:15. Pushed by dkazakov into branch 'master'. Fix rendering of the text with relative offsets 1) Relative offsets were calculated incorrectly: null offsets should not repeat itself, but define a new noop offset, which will be handled on a lower level 2) Workaround QTextLayout "weirdness" that makes it skip the space characters and not include them into "horizontal advance" of the text chunk M +80 -0 libs/flake/tests/TestSvgText.cpp M +3 -0 libs/flake/tests/TestSvgText.h A +- -- libs/flake/tests/data/svg_render/load_text_multiple_absolute_offsets_arabic.png A +- -- libs/flake/tests/data/svg_render/load_text_multiple_relative_offsets.png M +3 -1 libs/flake/text/KoSvgTextChunkShape.cpp M +104 -31 libs/flake/text/KoSvgTextShape.cpp https://commits.kde.org/krita/c764a68e1df604e7ccd453bac4ccf23182038479 Git commit 3fb3824e436df7a997c02f3ab59472be9e114de2 by Boudewijn Rempt, on behalf of Dmitry Kazakov. Committed on 19/03/2018 at 14:32. Pushed by rempt into branch 'krita/4.0'. Fix rendering of the text with relative offsets 1) Relative offsets were calculated incorrectly: null offsets should not repeat itself, but define a new noop offset, which will be handled on a lower level 2) Workaround QTextLayout "weirdness" that makes it skip the space characters and not include them into "horizontal advance" of the text chunk M +80 -0 libs/flake/tests/TestSvgText.cpp M +3 -0 libs/flake/tests/TestSvgText.h A +- -- libs/flake/tests/data/svg_render/load_text_multiple_absolute_offsets_arabic.png A +- -- libs/flake/tests/data/svg_render/load_text_multiple_relative_offsets.png M +3 -1 libs/flake/text/KoSvgTextChunkShape.cpp M +104 -31 libs/flake/text/KoSvgTextShape.cpp https://commits.kde.org/krita/3fb3824e436df7a997c02f3ab59472be9e114de2 |