diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-02-22 17:08:25 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-02-22 17:39:44 +0100 |
commit | 0b08eacd79a2133a07410dfb99bcc04bb9dd2199 (patch) | |
tree | 7d27cd1c6874f81999c60d284f4069c1d8706888 /vcl/source/window | |
parent | 6a141837a7bc75a7ef4a7827256be5a3a0a6092d (diff) |
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
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/status.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index 3960437063cb..764665c0a1ae 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 |