diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-01-10 17:20:43 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-01-10 13:51:26 +0100 |
commit | 1126212885ee2d1ba0fd5e48bdb5f6e9d99e0302 (patch) | |
tree | 4a722c157a7ee4695ea296e6d9b25b3d6ab99f4c /cui | |
parent | e17f003b5feb8da26498f317914eb2eb83be834b (diff) |
cui: no need to fetch the property from the map twice
Change-Id: I7597c352b2ae166657f1e431e3405fc690520afa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128206
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'cui')
-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; |