[Libreoffice-commits] core.git: vcl/source

Jan-Marek Glogowski glogow at fbihome.de
Wed Feb 22 16:41:56 UTC 2017


 vcl/source/window/status.cxx |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 0b08eacd79a2133a07410dfb99bcc04bb9dd2199
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date:   Wed Feb 22 17:08:25 2017 +0100

    tdf#104482 Force updating progress bar on safe
    
    I don't know why the progress bar on load is handled differently
    then on safe. As a workaround, this converts all Flush() calls
    to Update() calls, but we should update the UI on safe correctly.
    
    Change-Id: I97d6fc5797d08e9556f7fa7f9f8110aef30b3772

diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 3960437..764665c 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -1158,7 +1158,7 @@ void StatusBar::SetItemText( sal_uInt16 nItemId, const OUString& rText )
             {
                 Rectangle aRect = ImplGetItemRectPos(nPos);
                 Invalidate(aRect);
-                Flush();
+                Update();
             }
         }
     }
@@ -1211,7 +1211,7 @@ void StatusBar::SetItemData( sal_uInt16 nItemId, void* pNewData )
         {
             Rectangle aRect = ImplGetItemRectPos(nPos);
             Invalidate(aRect, InvalidateFlags::NoErase);
-            Flush();
+            Update();
         }
     }
 }
@@ -1241,7 +1241,7 @@ void StatusBar::RedrawItem(sal_uInt16 nItemId)
     {
         Rectangle aRect = ImplGetItemRectPos(nPos);
         Invalidate(aRect);
-        Flush();
+        Update();
     }
 }
 
@@ -1333,7 +1333,7 @@ void StatusBar::StartProgressMode( const OUString& rText )
     if ( IsReallyVisible() )
     {
         Invalidate();
-        Flush();
+        Update();
     }
 }
 
@@ -1348,7 +1348,7 @@ void StatusBar::SetProgressValue( sal_uInt16 nNewPercent )
     {
         bool bNeedErase = ImplGetSVData()->maNWFData.mbProgressNeedsErase;
         Invalidate(maPrgsFrameRect, bNeedErase ? InvalidateFlags::NONE : InvalidateFlags::NoErase);
-        Flush();
+        Update();
     }
     mnPercent = nNewPercent;
 }
@@ -1363,7 +1363,7 @@ void StatusBar::EndProgressMode()
     if ( IsReallyVisible() )
     {
         Invalidate();
-        Flush();
+        Update();
     }
 }
 
@@ -1380,7 +1380,7 @@ void StatusBar::SetText(const OUString& rText)
         {
             Invalidate();
             Window::SetText(rText);
-            Flush();
+            Update();
         }
     }
     else if (mbProgressMode)
@@ -1389,7 +1389,7 @@ void StatusBar::SetText(const OUString& rText)
         if (IsReallyVisible())
         {
             Invalidate();
-            Flush();
+            Update();
         }
     }
     else


More information about the Libreoffice-commits mailing list