svdxcgv.cxx (9f63b866) | svdxcgv.cxx (cb0a2370) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 574 unchanged lines hidden (view full) --- 583 { 584 SdrObject* pGrafObjTmp = GetMarkedObjectByIndex( 0 ); 585 SdrGrafObj* pGrafObj = ( GetMarkedObjectCount() ==1 ) ? PTR_CAST( SdrGrafObj, pGrafObjTmp ) : NULL; 586 587 if( pGrafObj ) 588 { 589 Graphic aGraphic( pGrafObj->GetTransformedGraphic() ); 590 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 574 unchanged lines hidden (view full) --- 583 { 584 SdrObject* pGrafObjTmp = GetMarkedObjectByIndex( 0 ); 585 SdrGrafObj* pGrafObj = ( GetMarkedObjectCount() ==1 ) ? PTR_CAST( SdrGrafObj, pGrafObjTmp ) : NULL; 586 587 if( pGrafObj ) 588 { 589 Graphic aGraphic( pGrafObj->GetTransformedGraphic() ); 590 |
591 if( aGraphic.GetType() == GRAPHIC_BITMAP ) 592 { 593 const Point aPos; 594 595 aMtf.AddAction( new MetaBmpExScaleAction( aPos, aBoundSize, aGraphic.GetBitmapEx() ) ); 596 aMtf.SetPrefMapMode( aMap ); 597 aMtf.SetPrefSize( aBoundSize ); 598 } 599 else 600 aMtf = aGraphic.GetGDIMetaFile(); | 591 // #119735# just use GetGDIMetaFile, it will create a bufferd version of contained bitmap now automatically 592 aMtf = aGraphic.GetGDIMetaFile(); |
601 } 602 } 603 604 if( !aMtf.GetActionCount() ) 605 { 606 VirtualDevice aOut; 607 const Size aDummySize(2, 2); 608 --- 295 unchanged lines hidden --- | 593 } 594 } 595 596 if( !aMtf.GetActionCount() ) 597 { 598 VirtualDevice aOut; 599 const Size aDummySize(2, 2); 600 --- 295 unchanged lines hidden --- |