Kaydet (Commit) cbdcdbff authored tarafından Jianyuan Li's avatar Jianyuan Li

#119570# fix chaos grouped object when import

Reported by: Du Jing
Patch by: Jianyuan Li
Review by: SunYing
üst 74f769f8
......@@ -4945,6 +4945,7 @@ Rectangle SvxMSDffManager::GetGlobalChildAnchor( const DffRecordHeader& rHd, SvS
{
Rectangle aChildAnchor;
rHd.SeekToContent( rSt );
sal_Bool bIsClientRectRead = sal_False;
while ( ( rSt.GetError() == 0 ) && ( rSt.Tell() < rHd.GetRecEndFilePos() ) )
{
DffRecordHeader aShapeHd;
......@@ -4979,7 +4980,16 @@ Rectangle SvxMSDffManager::GetGlobalChildAnchor( const DffRecordHeader& rHd, SvS
Scale( t );
Scale( r );
Scale( b );
aClientRect = Rectangle( l, t, r, b );
if ( bIsClientRectRead )
{
Rectangle aChild( l, t, r, b );
aChildAnchor.Union( aChild );
}
else
{
aClientRect = Rectangle( l, t, r, b );
bIsClientRectRead = sal_True;
}
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment