fdo#40466: Get charts to import from xlsx again.
This regression was probably caused by a bad merge of OOo m106.
This commit is contained in:
parent
2c00fc5206
commit
d178d7bef1
1 changed files with 11 additions and 2 deletions
|
@ -283,11 +283,20 @@ void DrawingFragment::onEndElement()
|
||||||
getLimitedValue< sal_Int32, sal_Int64 >( aShapeRectEmu.Y, 0, SAL_MAX_INT32 ),
|
getLimitedValue< sal_Int32, sal_Int64 >( aShapeRectEmu.Y, 0, SAL_MAX_INT32 ),
|
||||||
getLimitedValue< sal_Int32, sal_Int64 >( aShapeRectEmu.Width, 0, SAL_MAX_INT32 ),
|
getLimitedValue< sal_Int32, sal_Int64 >( aShapeRectEmu.Width, 0, SAL_MAX_INT32 ),
|
||||||
getLimitedValue< sal_Int32, sal_Int64 >( aShapeRectEmu.Height, 0, SAL_MAX_INT32 ) );
|
getLimitedValue< sal_Int32, sal_Int64 >( aShapeRectEmu.Height, 0, SAL_MAX_INT32 ) );
|
||||||
|
|
||||||
|
// Make sure to set the position and size *before* calling addShape().
|
||||||
|
mxShape->setPosition(::com::sun::star::awt::Point(aShapeRectEmu.X, aShapeRectEmu.Y));
|
||||||
|
mxShape->setSize(::com::sun::star::awt::Size(aShapeRectEmu.Width, aShapeRectEmu.Height));
|
||||||
|
|
||||||
basegfx::B2DHomMatrix aTransformation;
|
basegfx::B2DHomMatrix aTransformation;
|
||||||
mxShape->addShape( getOoxFilter(), &getTheme(), mxDrawPage, aTransformation, &aShapeRectEmu32 );
|
mxShape->addShape( getOoxFilter(), &getTheme(), mxDrawPage, aTransformation, &aShapeRectEmu32 );
|
||||||
|
|
||||||
// collect all shape positions in the WorksheetHelper base class
|
/* Collect all shape positions in the WorksheetHelper base
|
||||||
extendShapeBoundingBox( aShapeRectEmu32 );
|
class. But first, scale EMUs to 1/100 mm. */
|
||||||
|
Rectangle aShapeRectHmm(
|
||||||
|
convertEmuToHmm( aShapeRectEmu.X ), convertEmuToHmm( aShapeRectEmu.Y ),
|
||||||
|
convertEmuToHmm( aShapeRectEmu.Width ), convertEmuToHmm( aShapeRectEmu.Height ) );
|
||||||
|
extendShapeBoundingBox( aShapeRectHmm );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mxShape.reset();
|
mxShape.reset();
|
||||||
|
|
Loading…
Reference in a new issue