sd/source/ui/dlg/sdtreelb.cxx |   23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

New commits:
commit 0a51861e0e445c64848324303517e61f8677566c
Author:     Ilmari Lauhakangas <[email protected]>
AuthorDate: Fri Mar 6 16:57:06 2026 +0200
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Sat Mar 7 07:15:27 2026 +0100

    tdf#171173 Update Custom Animation deck after renaming shape via
    
    the Navigator
    
    Change-Id: Ife175cc4ab97af65d6a98e987192498bc23a49a1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201135
    Reviewed-by: Jim Raykowski <[email protected]>
    Reviewed-by: Ilmari Lauhakangas <[email protected]>
    Tested-by: Jenkins

diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index 2219b375f3d9..2dfc69ac1bc6 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -824,23 +824,26 @@ IMPL_LINK(SdPageObjsTLV, EditedEntryHdl, const 
IterString&, rIterString, bool)
 
     // set the new name
     const auto aEntryId = m_xTreeView->get_id(rIterString.first);
-    if (aEntryId.toInt64() == 1)
+    if (::sd::DrawDocShell* pDocShell = m_pDoc->GetDocSh())
     {
-        // page name
-        if (::sd::DrawDocShell* pDocShell = m_pDoc->GetDocSh())
+        if (::sd::ViewShell* pViewShell = GetViewShellForDocShell(*pDocShell))
         {
-            if (::sd::ViewShell* pViewShell = 
GetViewShellForDocShell(*pDocShell))
+            SdPage* pPage = pViewShell->GetActualPage();
+            if (aEntryId.toInt64() == 1)
             {
-                SdPage* pPage = pViewShell->GetActualPage();
+                // page name
                 pPage->SetName(rIterString.second);
             }
+            else if (SdrObject* pCursorEntryObject = 
weld::fromId<SdrObject*>(aEntryId))
+            {
+                // object name
+                pCursorEntryObject->SetName(rIterString.second);
+                pPage->notifyObjectRenamed(pCursorEntryObject);
+            }
         }
     }
-    else if (SdrObject* pCursorEntryObject = 
weld::fromId<SdrObject*>(aEntryId))
-    {
-        // object name
-        pCursorEntryObject->SetName(rIterString.second);
-    }
+
+
 
     return true;
 }

Reply via email to