| commit | c3d7933d0f5df37c69fdf5f238fbbd0bef8131d3 | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Fri Dec 14 09:48:19 2018 +0000 |
| committer | Caolán McNamara <caolanm@redhat.com> | Fri Dec 14 12:04:25 2018 +0100 |
| tree | 2c757f05ff60f272fb0403fe4c0e3472a5c68cef | |
| parent | 7eb54f83cde1e490e5e3127607c65e9027994246 [diff] |
Resolves: tdf#122059 don't crash with no parent for tabpage Change-Id: Id27609a86558094e6b53c763aebe77c97cc11672 Reviewed-on: https://gerrit.libreoffice.org/65148 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx index 8cfd624..74ab962 100644 --- a/vcl/source/window/tabpage.cxx +++ b/vcl/source/window/tabpage.cxx
@@ -60,7 +60,7 @@ void TabPage::ImplInitSettings() SetParentClipMode(); SetPaintTransparent( false ); if ( IsControlBackground() ) if (IsControlBackground() || !pParent) SetBackground( GetControlBackground() ); else SetBackground( pParent->GetBackground() );