Bug 447714 - Text tool increasing line height
Summary: Text tool increasing line height
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (show other bugs)
Version: 5.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-30 23:50 UTC by eli
Modified: 2023-07-22 07:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Video of the bug (3.89 MB, video/mp4)
2021-12-30 23:50 UTC, eli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eli 2021-12-30 23:50:42 UTC
Created attachment 144980 [details]
Video of the bug

SUMMARY
When opening a textbox to edit, it always sets the line height larger from whatever you had set it to ever time you open text to re-edit it.


STEPS TO REPRODUCE
1. Use the text tool to create a new text box. Have at least two lines of text so you can see the line height. It doesn't matter what the line height is. Lets say it is at 70% for example.
2. Save it and exit out of the text editor.
3. select the same text and open it again in the text editor. click save without changing the line height. You can change the text itself if you want. You will notice upon saving that the lines have gotten farther away from each other. If you select the text in question in the editor you will notice the lines height will show it as something larger, like 105% or something.

OBSERVED RESULT
The text tool will keep increasing line height when used to edit text

EXPECTED RESULT
The line height will stay the same unless you specifically select the text and modify the line height

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Alvin Wong 2023-07-22 07:51:01 UTC
Cannot reproduce in 5.1.6, presumably fixed by https://invent.kde.org/graphics/krita/-/commit/f0f55bea8e06c74b3a1b499d6c4cd84a29576753.