summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/tabpage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index c9bff3225700..ad3c12e0578d 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -61,7 +61,7 @@ void TabPage::ImplInitSettings()
SetParentClipMode();
SetPaintTransparent( false );
- if ( IsControlBackground() )
+ if (IsControlBackground() || !pParent)
SetBackground( GetControlBackground() );
else
SetBackground( pParent->GetBackground() );