[graphics/drawy/gsoc2026] src/widgets/command: fix: update property command rendering bug

Abdelhadi Wael <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 2c917ff42353fdf3dd7682aba8151d21e6fc3ee3 by Abdelhadi Wael.
Committed on 26/07/2026 at 21:24.
Pushed by mlaurent into branch 'gsoc2026'.

fix: update property command rendering bug

M  +2    -0    src/widgets/command/updatepropertycommand.cpp

https://invent.kde.org/graphics/drawy/-/commit/2c917ff42353fdf3dd7682aba8151d21e6fc3ee3

diff --git a/src/widgets/command/updatepropertycommand.cpp b/src/widgets/command/updatepropertycommand.cpp
index c668d053..a96ab344 100644
--- a/src/widgets/command/updatepropertycommand.cpp
+++ b/src/widgets/command/updatepropertycommand.cpp
@@ -31,6 +31,7 @@ void UpdatePropertyCommand::redo(ApplicationContext *context)
     for (const auto &item : std::as_const(m_items)) {
         if (item->hasProperty(type)) {
             if (item->formType() == Item::FormType::Text) {
+                dirtyRegion |= item->boundingBox();
                 const auto textItem = std::static_pointer_cast<TextItem>(item);
                 m_htmls[item] = textItem->html();
             }
@@ -53,6 +54,7 @@ void UpdatePropertyCommand::undo(ApplicationContext *context)
     for (const auto &item : std::as_const(m_items)) {
         if (item->hasProperty(type)) {
             if (m_htmls.contains(item)) {
+                dirtyRegion |= item->boundingBox();
                 const auto textItem = std::static_pointer_cast<TextItem>(item);
                 textItem->setHtml(m_htmls[item]);
             } else {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.