sd/qa/unit/uiimpress.cxx       |    2 +-
 svx/source/svdraw/svdmodel.cxx |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

New commits:
commit be7ca6ab992406afc7841c33c7a6d8bfb4795185
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Fri Jun 13 19:33:29 2025 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Jun 16 11:25:48 2025 +0200

    tdf#166849 moving slide with keyboard does not update display
    
    regression from
        commit ad3fa69eeb89573c77feba64dab3380154a90953
        Author: Noel Grandin <noel.gran...@collabora.co.uk>
        Date:   Fri Sep 6 12:55:26 2024 +0200
        reduce time spent in RecalcPageNums when importing PDF
    
    Change-Id: Ic5b2e73a7871f2a89cbd38bef91ad09152304d56
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186472
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Tested-by: Jenkins
    (cherry picked from commit cc99f7736e10c8290d34eeb96aa6a3b7fd63a212)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186542
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/sd/qa/unit/uiimpress.cxx b/sd/qa/unit/uiimpress.cxx
index 96cb6505efa3..57b6e6d0962c 100644
--- a/sd/qa/unit/uiimpress.cxx
+++ b/sd/qa/unit/uiimpress.cxx
@@ -259,7 +259,7 @@ CPPUNIT_TEST_FIXTURE(SdUiImpressTest, 
testDocumentStructureTransformExtractSlide
           "\"Click to add Text\"]}}}, \"Objects 3\": { \"TextCount\": 1, 
\"Texts\": { \"Text 0\": "
           "{ \"ParaCount\": 1, \"Paragraphs\": [ \"Click to add Text\"]}}}, 
\"Objects 4\": { "
           "\"TextCount\": 1, \"Texts\": { \"Text 0\": { \"ParaCount\": 1, 
\"Paragraphs\": [ "
-          "\"Click to add Text\"]}}}}}, \"Slide 4\": { \"SlideName\": \"Slide 
6\", "
+          "\"Click to add Text\"]}}}}}, \"Slide 4\": { \"SlideName\": \"Slide 
5\", "
           "\"MasterSlideName\": \"Topic_Separator_Purple\", \"LayoutId\": 3, 
\"LayoutName\": "
           "\"AUTOLAYOUT_TITLE_2CONTENT\", \"ObjectCount\": 1, \"Objects\": { 
\"Objects 0\": { "
           "\"TextCount\": 1, \"Texts\": { \"Text 0\": { \"ParaCount\": 1, 
\"Paragraphs\": [ \"With "
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index 5259ba3aa0f2..a3d6de78ec99 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -1241,9 +1241,11 @@ rtl::Reference<SdrPage> SdrModel::RemovePage(sal_uInt16 
nPgNum)
 void SdrModel::MovePage(sal_uInt16 nPgNum, sal_uInt16 nNewPos)
 {
     rtl::Reference<SdrPage> pPg = std::move(maPages[nPgNum]);
-    if (pPg) {
+    if (pPg)
+    {
         maPages.erase(maPages.begin()+nPgNum); // shortcut to avoid two 
broadcasts
         PageListChanged();
+        m_nPageNumsDirtyFrom = std::min(m_nPageNumsDirtyFrom, nPgNum);
         pPg->SetInserted(false);
         InsertPage(pPg.get(), nNewPos);
     }

Reply via email to