vcl/source/window/tabpage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 47cbc0f705dc965e11282d9557bfe7e8e78fea0b Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Dec 14 09:48:19 2018 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Dec 14 12:04:05 2018 +0100 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 <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> 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() ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits