[Libreoffice-commits] core.git: vcl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Dec 14 11:04:32 UTC 2018
vcl/source/window/tabpage.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 47cbc0f705dc965e11282d9557bfe7e8e78fea0b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Dec 14 09:48:19 2018 +0000
Commit: Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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() );
More information about the Libreoffice-commits
mailing list