diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-05 11:25:02 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2015-08-06 09:15:16 +0000 |
commit | 884856481774a6e6eb3e350bf76b3900c2e62b0d (patch) | |
tree | acc8e6620eb3bc6a9c83f2760d7875588fdabee5 | |
parent | 2ca44dd59dc1833526e45f2a750ef8bb2888a60e (diff) |
tdf#92982 vcl rendercontext: fix buffer size with empty user profile
I did not notice this before, as my user profile had a custom window
size; but with an empty user profile the buffer had a 0,0 size, so the
buffered result was empty, as no ImplHandleResize() was invoked.
Change-Id: Ie299ad1323944941afc407dc90f2459d72885d42
(cherry picked from commit 968bc55adebd0158349b32a31ea341be292d8aa1)
Reviewed-on: https://gerrit.libreoffice.org/17532
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-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 f24e4bb2c52d..e8d2b9615d92 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -2481,6 +2481,10 @@ void Window::Show(bool bVisible, sal_uInt16 nFlags) mpWindowImpl->mpFrame->GetClientSize( nOutWidth, nOutHeight ); ImplHandleResize( this, nOutWidth, nOutHeight ); } + + if (mpWindowImpl->mpFrameData->mpBuffer && mpWindowImpl->mpFrameData->mpBuffer->GetOutputSizePixel() != GetOutputSizePixel()) + // Make sure that the buffer size matches the window size, even if no resize was needed. + mpWindowImpl->mpFrameData->mpBuffer->SetOutputSizePixel(GetOutputSizePixel()); } if( aDogTag.IsDead() ) |