chart51: #i116544# integrate fix for copy/paste bug #i116943#
This commit is contained in:
parent
92c21df558
commit
87635e20d1
1 changed files with 5 additions and 0 deletions
|
@ -309,6 +309,7 @@ void ScChartHelper::AddRangesIfProtectedChart( ScRangeListVector& rRangesVector,
|
|||
if ( xEmbeddedObj.is() )
|
||||
{
|
||||
bool bDisableDataTableDialog = false;
|
||||
sal_Int32 nOldState = xEmbeddedObj->getCurrentState();
|
||||
svt::EmbeddedObjectRef::TryRunningState( xEmbeddedObj );
|
||||
uno::Reference< beans::XPropertySet > xProps( xEmbeddedObj->getComponent(), uno::UNO_QUERY );
|
||||
if ( xProps.is() &&
|
||||
|
@ -333,6 +334,10 @@ void ScChartHelper::AddRangesIfProtectedChart( ScRangeListVector& rRangesVector,
|
|||
}
|
||||
}
|
||||
}
|
||||
if ( xEmbeddedObj->getCurrentState() != nOldState )
|
||||
{
|
||||
xEmbeddedObj->changeState( nOldState );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue