Bug 447714

Summary: Text tool increasing line height
Product: [Applications] krita Reporter: eli
Component: Tool/TextAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: alvin, halla
Priority: NOR    
Version First Reported In: 5.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Video of the 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.