[Libreoffice-commits] core.git: svx/source

Armin Le Grand alg at apache.org
Tue Jul 16 06:17:51 PDT 2013


 svx/source/svdraw/svdxcgv.cxx |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

New commits:
commit c239615ca48a2ca15460a12ac654774ef927bfdc
Author: Armin Le Grand <alg at apache.org>
Date:   Tue Jul 16 10:55:54 2013 +0000

    Resolves: #i122753# Force SwapIn for BitmapObjects which...
    
    are part of a conversion to BitmapEx
    
    (cherry picked from commit 4dc54d2ec37bc1595eb85548f5e3c6d2add2b10a)
    
    Change-Id: I43a92bfbdb41c8c2215aacd65b65774dcf5ab2be

diff --git a/svx/source/svdraw/svdxcgv.cxx b/svx/source/svdraw/svdxcgv.cxx
index f750448..5359d57 100644
--- a/svx/source/svdraw/svdxcgv.cxx
+++ b/svx/source/svdraw/svdxcgv.cxx
@@ -490,8 +490,17 @@ BitmapEx SdrExchangeView::GetMarkedObjBitmapEx(bool bNoVDevIfOneBmpMarked) const
 
                 for(sal_uInt32 a(0); a < nCount; a++)
                 {
+                    SdrObject* pCandidate = aSdrObjects[a];
+                    SdrGrafObj* pSdrGrafObj = dynamic_cast< SdrGrafObj* >(pCandidate);
+
+                    if(pSdrGrafObj)
+                    {
+                        // #122753# To ensure existance of graphic content, force swap in
+                        pSdrGrafObj->ForceSwapIn();
+                    }
+
                     xPrimitives[a] = new drawinglayer::primitive2d::GroupPrimitive2D(
-                        aSdrObjects[a]->GetViewContact().getViewIndependentPrimitive2DSequence());
+                        pCandidate->GetViewContact().getViewIndependentPrimitive2DSequence());
                 }
 
                 // get logic range


More information about the Libreoffice-commits mailing list