[Libreoffice-commits] core.git: sw/source
Shivam Kumar Singh (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jul 9 12:44:04 UTC 2020
sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 4213a0b6929d188d5ec75a6b90e194c2b6ba9d11
Author: Shivam Kumar Singh <shivamhere247 at gmail.com>
AuthorDate: Tue Jul 7 01:06:55 2020 +0530
Commit: Heiko Tietze <heiko.tietze at documentfoundation.org>
CommitDate: Thu Jul 9 14:43:19 2020 +0200
tdf#134562 Added check for textnode
Change-Id: I0a38de547747f04a61a66c9ef62e59a68c4e1826
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98225
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
index dbc22de258b5..0bfafc0a5bc9 100644
--- a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
+++ b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
@@ -20,6 +20,7 @@
#include "WriterInspectorTextPanel.hxx"
#include <svx/svxids.hrc>
#include <doc.hxx>
+#include <ndtxt.hxx>
#include <docsh.hxx>
#include <wrtsh.hxx>
#include <com/sun/star/text/XTextRange.hpp>
@@ -241,7 +242,7 @@ void WriterInspectorTextPanel::NotifyItemUpdate(const sal_uInt16 nSId,
case SID_STYLE_FAMILY1:
case SID_STYLE_FAMILY2:
{
- if (pDocSh)
+ if (pDocSh && pDocSh->GetDoc()->GetEditShell()->GetCursor()->GetNode().GetTextNode())
{
/*
First check in the property set of Character Styles
More information about the Libreoffice-commits
mailing list