summaryrefslogtreecommitdiff
path: root/vcl/source/window/window.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-03 16:29:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:08 +0100
commit2176e44c638a9b35677ce82a4ea9c369cb8586da (patch)
treeb26b7ae1a6813db54747c30def6357584c4e70ea /vcl/source/window/window.cxx
parent89110335ddff0e32ae6c9deea89f426506a8e2e0 (diff)
better use of hasPendingLayout
Diffstat (limited to 'vcl/source/window/window.cxx')
-rw-r--r--vcl/source/window/window.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 5b4cdaacb804..097599b60959 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2477,8 +2477,12 @@ void Window::ImplPostPaint()
IMPL_LINK_NOARG(Window, ImplHandlePaintHdl)
{
+ // save paint events until layout is done
if (IsDialog() && static_cast<const Dialog*>(this)->hasPendingLayout())
+ {
+ mpWindowImpl->mpFrameData->maPaintTimer.Start();
return 0;
+ }
// save paint events until resizing is done
if( mpWindowImpl->mbFrame && mpWindowImpl->mpFrameData->maResizeTimer.IsActive() )