handle shapes anchored to the wrong sheet without crash, fdo#58858
Change-Id: I00d127dbb6151e3100be931079cbf8907ac69ddd
This commit is contained in:
@@ -693,7 +693,10 @@ void ScXMLExport::CollectSharedData(sal_Int32& nTableCount, sal_Int32& nShapesCo
|
|||||||
{
|
{
|
||||||
ScMyShape aMyShape;
|
ScMyShape aMyShape;
|
||||||
aMyShape.aAddress = pAnchor->maStart;
|
aMyShape.aAddress = pAnchor->maStart;
|
||||||
|
SAL_WARN_IF(aMyShape.aAddress.Tab() != nTable, "sc", "not anchored to current sheet!");
|
||||||
|
aMyShape.aAddress.SetTab(nTable);
|
||||||
aMyShape.aEndAddress = pAnchor->maEnd;
|
aMyShape.aEndAddress = pAnchor->maEnd;
|
||||||
|
aMyShape.aEndAddress.SetTab( nTable );
|
||||||
aMyShape.nEndX = pAnchor->maEndOffset.X();
|
aMyShape.nEndX = pAnchor->maEndOffset.X();
|
||||||
aMyShape.nEndY = pAnchor->maEndOffset.Y();
|
aMyShape.nEndY = pAnchor->maEndOffset.Y();
|
||||||
aMyShape.xShape = xShape;
|
aMyShape.xShape = xShape;
|
||||||
|
Reference in New Issue
Block a user