[Libreoffice-commits] core.git: Branch 'feature/image_rework' - svtools/source

Zolnai Tamás tamas.zolnai at collabora.com
Mon Oct 27 08:19:03 PDT 2014


 svtools/source/graphic/grfmgr2.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b0b45f82dbc6a16e6f29887531951a41c15b081f
Author: Zolnai Tamás <tamas.zolnai at collabora.com>
Date:   Mon Oct 27 16:16:04 2014 +0100

    Fix build
    
    Change-Id: Id0dbf155e6430a456c7e1d9ab1d3b892d7a724a4

diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx
index 427c312..7f93bf9 100644
--- a/svtools/source/graphic/grfmgr2.cxx
+++ b/svtools/source/graphic/grfmgr2.cxx
@@ -207,13 +207,13 @@ void GraphicManager::ImplCheckSizeOfSwappedInGraphics(const GraphicObject* pGrap
         pObj = maObjList[i];
         if (pObj->meType == GRAPHIC_BITMAP && !pObj->IsSwappedOut() && pObj->GetSizeBytes())
         {
+            size_t const nSize = pObj->GetSizeBytes();
+            nUsedSize += nSize;
             if( pObj != pGraphicToIgnore )
             {
                 aCandidates.push_back(pObj);
                 sizes.insert(std::make_pair(pObj, nSize));
             }
-            size_t const nSize = pObj->GetSizeBytes();
-            nUsedSize += nSize;
         }
     }
 


More information about the Libreoffice-commits mailing list