"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "svx/source/unodraw/unoshape.cxx" between
libreoffice-7.0.6.1.tar.xz and libreoffice-7.0.6.2.tar.xz

About: LibreOffice source code (core). "Still" packages (released version).

unoshape.cxx  (libreoffice-7.0.6.1.tar.xz):unoshape.cxx  (libreoffice-7.0.6.2.tar.xz)
skipping to change at line 1207 skipping to change at line 1207
else else
return maSize; return maSize;
} }
void SAL_CALL SvxShape::setSize( const awt::Size& rSize ) void SAL_CALL SvxShape::setSize( const awt::Size& rSize )
{ {
::SolarMutexGuard aGuard; ::SolarMutexGuard aGuard;
if(HasSdrObject()) if(HasSdrObject())
{ {
// #i123539# optimization for 3D chart object generation: do not use UNO tools::Rectangle aRect( svx_getLogicRectHack(GetSdrObject()) );
// API commands to get the range, this is too expensive since for 3D
// scenes it may recalculate the whole scene since in AOO this depends
// on the contained geometry (layouted to show all content)
const bool b3DConstruction(dynamic_cast< E3dObject* >(GetSdrObject()) &&
GetSdrObject()->getSdrModelFromSdrObject().isLocked());
tools::Rectangle aRect(
b3DConstruction ?
tools::Rectangle(maPosition.X, maPosition.Y, maSize.Width, maSiz
e.Height) :
svx_getLogicRectHack(GetSdrObject()) );
Size aLocalSize( rSize.Width, rSize.Height ); Size aLocalSize( rSize.Width, rSize.Height );
ForceMetricToItemPoolMetric(aLocalSize); ForceMetricToItemPoolMetric(aLocalSize);
if(GetSdrObject()->GetObjInventor() == SdrInventor::Default && GetSdrObj ect()->GetObjIdentifier() == OBJ_MEASURE ) if(GetSdrObject()->GetObjInventor() == SdrInventor::Default && GetSdrObj ect()->GetObjIdentifier() == OBJ_MEASURE )
{ {
Fraction aWdt(aLocalSize.Width(),aRect.Right()-aRect.Left()); Fraction aWdt(aLocalSize.Width(),aRect.Right()-aRect.Left());
Fraction aHgt(aLocalSize.Height(),aRect.Bottom()-aRect.Top()); Fraction aHgt(aLocalSize.Height(),aRect.Bottom()-aRect.Top());
Point aPt = GetSdrObject()->GetSnapRect().TopLeft(); Point aPt = GetSdrObject()->GetSnapRect().TopLeft();
GetSdrObject()->Resize(aPt,aWdt,aHgt); GetSdrObject()->Resize(aPt,aWdt,aHgt);
} }
 End of changes. 1 change blocks. 
11 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)