Bug 515967

Summary: Text Tool runs into rendering issues while undoing/redoing
Product: [Applications] krita Reporter: Vitamorus <vitamorus.art>
Component: Tool/TextAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.0.0-beta1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Text clipping on Undo
Inconsitent rendering on redo/undo actions
system info

Description Vitamorus 2026-02-13 23:32:44 UTC
Created attachment 189547 [details]
Text clipping on Undo

SUMMARY
Krita will occasionally run into some clipping/rendering issues when editing text and trying to undo/redo the editing. It's a bit random but I think I found one way to reproduce it consistently.

STEPS TO REPRODUCE
1. Create new document
2. Add a text object with 'Placeholder Text'
3. Click on the space between the 'd' and the 'e' twice; once to enable editing and a second time to remove the highlight and place the caret.
4. Press Enter to add a new line and then Ctrl+Z to undo.
5. Part of the text doesn't render

There's another variation of it as well if you create a couple of text objects, select all the text in one of them and delete it without confirming, and then try to undo the delete 

This was tested with Qt Platform Name:  "wayland". 
Attached is a couple of video recordings of the bug, along with additional system info.
Comment 1 Vitamorus 2026-02-13 23:33:55 UTC
Created attachment 189548 [details]
Inconsitent rendering on redo/undo actions
Comment 2 Vitamorus 2026-02-13 23:34:13 UTC
Created attachment 189549 [details]
system info