diff options
author | Eike Rathke <erack@redhat.com> | 2015-01-06 11:57:40 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-01-06 11:59:53 +0100 |
commit | 8e94c40f1341c1b42b67b4643c56e941d66f6474 (patch) | |
tree | db641b90d248188cc6a51a961014393dbfb7f640 /framework | |
parent | 485e4432b737ec20ce78fe5afd44365000eda6f3 (diff) |
how about scope
Change-Id: I4c9e5f754974b6726fc86bc87775ba81832b3984
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/fwe/classes/addonsoptions.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/source/fwe/classes/addonsoptions.cxx b/framework/source/fwe/classes/addonsoptions.cxx index 7ba81c37ea9e..cde340f913c7 100644 --- a/framework/source/fwe/classes/addonsoptions.cxx +++ b/framework/source/fwe/classes/addonsoptions.cxx @@ -499,9 +499,6 @@ static Image ScaleImage( const Image &rImage, bool bBig ) Image AddonsOptions_Impl::GetImageFromURL( const OUString& aURL, bool bBig, bool bNoScale ) { Image aImage; - ImageSize eSize = bBig ? IMGSIZE_BIG : IMGSIZE_SMALL; - int nIdx = (int)eSize; - int nOtherIdx = nIdx ? 0 : 1; SAL_INFO("fwk", "Expensive: Addons GetImageFromURL " << aURL << " big " << (bBig?"big":"litte") << @@ -510,6 +507,10 @@ Image AddonsOptions_Impl::GetImageFromURL( const OUString& aURL, bool bBig, bool ImageManager::iterator pIter = m_aImageManager.find(aURL); if ( pIter != m_aImageManager.end() ) { + ImageSize eSize = bBig ? IMGSIZE_BIG : IMGSIZE_SMALL; + int nIdx = (int)eSize; + int nOtherIdx = nIdx ? 0 : 1; + OneImageEntry& rSizeEntry = pIter->second.aSizeEntry[nIdx]; OneImageEntry& rOtherEntry = pIter->second.aSizeEntry[nOtherIdx]; // actually read the image ... |