diff options
author | Shivam Kumar Singh <shivamhere247@gmail.com> | 2020-07-07 01:06:55 +0530 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2020-07-09 14:43:19 +0200 |
commit | 4213a0b6929d188d5ec75a6b90e194c2b6ba9d11 (patch) | |
tree | d0ff5a0d3f0cd8b8d3630d877b6d9a0af3e41051 | |
parent | 1f66b4247334d253c7237ed5447e5f72716c4897 (diff) |
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@collabora.com>
-rw-r--r-- | sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 |