summaryrefslogtreecommitdiffstats
path: root/sw/source/core/inc/doctxm.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/inc/doctxm.hxx')
-rw-r--r--sw/source/core/inc/doctxm.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/inc/doctxm.hxx b/sw/source/core/inc/doctxm.hxx
index faea538caea8..b2cfe4a55fae 100644
--- a/sw/source/core/inc/doctxm.hxx
+++ b/sw/source/core/inc/doctxm.hxx
@@ -90,7 +90,7 @@ public:
bool IsVisible() const override
{
SwPtrMsgPoolItem aInfo(RES_CONTENT_VISIBLE, nullptr);
- return GetFormat() && GetFormat()->GetInfo(aInfo);
+ return GetFormat() && !GetFormat()->GetInfo(aInfo) && aInfo.pObject;
}
};