| commit | 4213a0b6929d188d5ec75a6b90e194c2b6ba9d11 | [log] |
|---|---|---|
| author | Shivam Kumar Singh <shivamhere247@gmail.com> | Tue Jul 07 01:06:55 2020 +0530 |
| committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | Thu Jul 09 14:43:19 2020 +0200 |
| 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>
diff --git a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx index dbc22de..0bfafc0 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