sd/source/ui/dlg/animobjs.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit fd26ff2418a8c2abc71c9155f458ff798a580bea
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Fri Aug 12 15:58:51 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Aug 12 19:53:16 2022 +0200

    tdf#150325 Newly created animated gif is not saved
    
    regression from
        commit 6621c3c67f001c8b8798ae94bb5d84f483617cf4
        Author: Noel Grandin <noel.gran...@collabora.co.uk>
        Date:   Wed Jun 20 16:51:48 2018 +0200
        loplugin:useuniqueptr in AnimationWindow
    
    Change-Id: I995a278aff3945070af45b01f1e63b253cceb24c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138202
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx
index b70848e23c78..8b140a3b472d 100644
--- a/sd/source/ui/dlg/animobjs.cxx
+++ b/sd/source/ui/dlg/animobjs.cxx
@@ -507,7 +507,7 @@ void AnimationWindow::UpdateControl(bool const 
bDisableCtrls)
     // tdf#95298 check m_nCurrentFrame for EMPTY_FRAMELIST to avoid 
out-of-bound array access
     if (!m_FrameList.empty() && EMPTY_FRAMELIST != m_nCurrentFrame)
     {
-        BitmapEx & rBmp(m_FrameList[m_nCurrentFrame].first);
+        BitmapEx aBmp(m_FrameList[m_nCurrentFrame].first);
 
         SdPage* pPage = pMyDoc->GetSdPage(0, PageKind::Standard);
         SdrObject *const pObject = pPage->GetObj(m_nCurrentFrame);
@@ -529,10 +529,10 @@ void AnimationWindow::UpdateControl(bool const 
bDisableCtrls)
                 : sd::OUTPUT_DRAWMODE_COLOR );
             pVD->Erase();
             pObject->SingleObjectPainter( *pVD );
-            rBmp = pVD->GetBitmapEx( aObjRect.TopLeft(), aObjSize );
+            aBmp = pVD->GetBitmapEx( aObjRect.TopLeft(), aObjSize );
         }
 
-        m_xCtlDisplay->SetBitmapEx(&rBmp);
+        m_xCtlDisplay->SetBitmapEx(&aBmp);
     }
     else
     {

Reply via email to