Kaydet (Commit) 0203776f authored tarafından Ingrid Halama's avatar Ingrid Halama

#i108122# data label from categories crashes office when having no categories

üst a7062ae8
...@@ -537,6 +537,9 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re ...@@ -537,6 +537,9 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re
createText( xTarget_, aText.makeStringAndClear() createText( xTarget_, aText.makeStringAndClear()
, *pPropNames, *pPropValues, ShapeFactory::makeTransformation( aScreenPosition2D ) ); , *pPropNames, *pPropValues, ShapeFactory::makeTransformation( aScreenPosition2D ) );
if( !xTextShape.is() )
return xTextShape;
const awt::Point aUnrotatedTextPos( xTextShape->getPosition() ); const awt::Point aUnrotatedTextPos( xTextShape->getPosition() );
if( fRotationDegrees != 0.0 ) if( fRotationDegrees != 0.0 )
{ {
...@@ -547,7 +550,7 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re ...@@ -547,7 +550,7 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re
LabelPositionHelper::correctPositionForRotation( xTextShape, eAlignment, fRotationDegrees, true /*bRotateAroundCenter*/ ); LabelPositionHelper::correctPositionForRotation( xTextShape, eAlignment, fRotationDegrees, true /*bRotateAroundCenter*/ );
} }
if( xSymbol.is() && xTextShape.is() ) if( xSymbol.is() )
{ {
const awt::Point aOldTextPos( xTextShape->getPosition() ); const awt::Point aOldTextPos( xTextShape->getPosition() );
awt::Point aNewTextPos( aOldTextPos ); awt::Point aNewTextPos( aOldTextPos );
......
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