chart51: #i116544# integrate fix for copy/paste bug #i116943#

This commit is contained in:
Ingrid Halama [iha] 2011-02-16 19:12:40 +01:00
parent 92c21df558
commit 87635e20d1

View file

@ -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 );
}
}
}
}