diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-03 16:29:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:08 +0100 |
commit | 2176e44c638a9b35677ce82a4ea9c369cb8586da (patch) | |
tree | b26b7ae1a6813db54747c30def6357584c4e70ea /vcl/source/window/window.cxx | |
parent | 89110335ddff0e32ae6c9deea89f426506a8e2e0 (diff) |
better use of hasPendingLayout
Diffstat (limited to 'vcl/source/window/window.cxx')
-rw-r--r-- | vcl/source/window/window.cxx | 4 |
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() ) |