summaryrefslogtreecommitdiff
path: root/svx/source/sdr/properties/properties.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sdr/properties/properties.cxx')
-rw-r--r--svx/source/sdr/properties/properties.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sdr/properties/properties.cxx b/svx/source/sdr/properties/properties.cxx
index 95a9e9e433ce..c3ffd1d86313 100644
--- a/svx/source/sdr/properties/properties.cxx
+++ b/svx/source/sdr/properties/properties.cxx
@@ -126,9 +126,9 @@ namespace sdr::properties
const sal_uInt32 nCount(rChange.GetRectangleCount());
// invalidate all new rectangles
- if(dynamic_cast<const SdrObjGroup*>( &GetSdrObject() ) != nullptr)
+ if(auto pObjGroup = dynamic_cast<SdrObjGroup*>( &GetSdrObject() ))
{
- SdrObjListIter aIter(static_cast<SdrObjGroup&>(GetSdrObject()), SdrIterMode::DeepNoGroups);
+ SdrObjListIter aIter(pObjGroup, SdrIterMode::DeepNoGroups);
while(aIter.IsMore())
{