summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-12-14 09:48:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-12-14 12:04:05 +0100
commit47cbc0f705dc965e11282d9557bfe7e8e78fea0b (patch)
tree302c813ab3434d2665ac8547168bcb34dc5073b1 /vcl
parent0932e4bb9a4e4a25be092dcf87a0119d1894ac30 (diff)
Resolves: tdf#122059 don't crash with no parent for tabpage
Change-Id: Id27609a86558094e6b53c763aebe77c97cc11672 Reviewed-on: https://gerrit.libreoffice.org/65147 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
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() );