summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/window.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 4a6cab270591..135372d9a2c9 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2983,15 +2983,20 @@ void Window::Scroll( long nHorzScroll, long nVertScroll,
void Window::Flush()
{
-
- const tools::Rectangle aWinRect( Point( mnOutOffX, mnOutOffY ), Size( mnOutWidth, mnOutHeight ) );
- mpWindowImpl->mpFrame->Flush( aWinRect );
+ if (mpWindowImpl)
+ {
+ const tools::Rectangle aWinRect( Point( mnOutOffX, mnOutOffY ), Size( mnOutWidth, mnOutHeight ) );
+ mpWindowImpl->mpFrame->Flush( aWinRect );
+ }
}
void Window::SetUpdateMode( bool bUpdate )
{
- mpWindowImpl->mbNoUpdate = !bUpdate;
- CompatStateChanged( StateChangedType::UpdateMode );
+ if (mpWindowImpl)
+ {
+ mpWindowImpl->mbNoUpdate = !bUpdate;
+ CompatStateChanged( StateChangedType::UpdateMode );
+ }
}
void Window::GrabFocus()