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.
Created attachment 189548 [details] Inconsitent rendering on redo/undo actions
Created attachment 189549 [details] system info
I can reproduce this consistently.
Git commit 0c53e851024907560d712c6b0d357a5554359682 by Wolthera van Hövell tot Westerflier. Committed on 10/03/2026 at 16:36. Pushed by woltherav into branch 'master'. Make text bulkactions also take into account undo-mementos. Without this, the text shape thinks it doesn't need to provide an update rect, leading to rendering errors. M +13 -1 libs/flake/text/KoSvgTextShape.cpp M +2 -1 libs/flake/text/KoSvgTextShape_p.h https://invent.kde.org/graphics/krita/-/commit/0c53e851024907560d712c6b0d357a5554359682
Ok, so I thought I had fixed this, but instead I figured out the problem is deeper: Basically, if a memento (undo info) is used to set the layout, only the rect underneath 1024x1024 pixels will be updated... I am going to experiment further.
Git commit 9e5359d55fc0874f61dcbc4d776ad843689da4c2 by Wolthera van Hövell tot Westerflier. Committed on 10/03/2026 at 17:02. Pushed by woltherav into branch 'master'. Fix updating text from undo info. KoShapes need both be updated with updateAbsolute as well as notifyChanged, but for mementos, the second wasn't performed. M +2 -0 libs/flake/text/KoSvgTextShape.cpp https://invent.kde.org/graphics/krita/-/commit/9e5359d55fc0874f61dcbc4d776ad843689da4c2
Git commit 3f8687ddb2f8a31bf98552e2e96e81acbb78fcd5 by Wolthera van Hövell. Committed on 10/03/2026 at 17:44. Pushed by woltherav into branch 'krita/6.0'. Make text bulkactions also take into account undo-mementos. Without this, the text shape thinks it doesn't need to provide an update rect, leading to rendering errors. (cherry picked from commit 0c53e851024907560d712c6b0d357a5554359682) Co-authored-by: Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com> M +13 -1 libs/flake/text/KoSvgTextShape.cpp M +2 -1 libs/flake/text/KoSvgTextShape_p.h https://invent.kde.org/graphics/krita/-/commit/3f8687ddb2f8a31bf98552e2e96e81acbb78fcd5
Git commit a56954e465951f4fe975ff981ca304f53f19720e by Wolthera van Hövell. Committed on 10/03/2026 at 17:44. Pushed by woltherav into branch 'krita/6.0'. Fix updating text from undo info. KoShapes need both be updated with updateAbsolute as well as notifyChanged, but for mementos, the second wasn't performed. (cherry picked from commit 9e5359d55fc0874f61dcbc4d776ad843689da4c2) Co-authored-by: Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com> M +2 -0 libs/flake/text/KoSvgTextShape.cpp https://invent.kde.org/graphics/krita/-/commit/a56954e465951f4fe975ff981ca304f53f19720e