[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - svx/source
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 24 08:28:32 UTC 2020
svx/source/tbxctrls/StylesPreviewWindow.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit c64e4a6ac65535e2e8ca6ba52812804618b03fac
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Jun 18 09:55:44 2020 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Jun 24 10:28:00 2020 +0200
Styles preview: avoid nullptr dereference
Change-Id: I04292baa8a680f03613cef32f7cb55581b914809
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96935
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/svx/source/tbxctrls/StylesPreviewWindow.cxx b/svx/source/tbxctrls/StylesPreviewWindow.cxx
index 806b168c5857..cf1fba02a2d7 100644
--- a/svx/source/tbxctrls/StylesPreviewWindow.cxx
+++ b/svx/source/tbxctrls/StylesPreviewWindow.cxx
@@ -205,6 +205,9 @@ static SvxFont GetFontFromItems(const SvxFontItem* pFontItem, Size aPixelFontSiz
void StyleItemController::DrawEntry(vcl::RenderContext& rRenderContext)
{
SfxObjectShell* pShell = SfxObjectShell::Current();
+ if (!pShell)
+ return;
+
SfxStyleSheetBasePool* pPool = pShell->GetStyleSheetPool();
SfxStyleSheetBase* pStyle = nullptr;
More information about the Libreoffice-commits
mailing list