diff options
-rw-r--r-- | cui/source/tabpages/grfpage.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx index 9fd58548516e..f18b2aa006fd 100644 --- a/cui/source/tabpages/grfpage.cxx +++ b/cui/source/tabpages/grfpage.cxx @@ -290,8 +290,9 @@ void SvxGrfCropPage::ActivatePage(const SfxItemSet& rSet) #endif auto& aProperties = getAdditionalProperties(); - if (aProperties.find("PreferredDPI") != aProperties.end()) - m_aPreferredDPI = aProperties.at("PreferredDPI").get<sal_Int32>(); + auto aIterator = aProperties.find("PreferredDPI"); + if (aIterator != aProperties.end()) + m_aPreferredDPI = aIterator->second.get<sal_Int32>(); bSetOrigSize = false; |