diff options
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index 5a5d785f79d7..3b7f2346e219 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -325,9 +325,9 @@ public: for (editeng::Section const & rSection : aSections) { const SvxFieldItem* pFieldItem = findField(rSection); - if (pFieldItem) + const editeng::CustomPropertyField* pCustomPropertyField = pFieldItem ? dynamic_cast<const editeng::CustomPropertyField*>(pFieldItem->GetField()) : nullptr; + if (pCustomPropertyField) { - const auto* pCustomPropertyField = dynamic_cast<const editeng::CustomPropertyField*>(pFieldItem->GetField()); OUString aKey = pCustomPropertyField->GetKey(); if (aKey.startsWith(sPolicy + "Marking:Text:")) { |