sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 4213a0b6929d188d5ec75a6b90e194c2b6ba9d11
Author:     Shivam Kumar Singh <shivamhere...@gmail.com>
AuthorDate: Tue Jul 7 01:06:55 2020 +0530
Commit:     Heiko Tietze <heiko.tie...@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.kagan...@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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to