diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx index a8561dc8bb1f..59a497208f52 100644 --- a/chart2/source/view/axes/VCartesianAxis.cxx +++ b/chart2/source/view/axes/VCartesianAxis.cxx @@ -1849,9 +1849,10 @@ void VCartesianAxis::createShapes() AxisLabelAlignment aLabelAlign = m_aAxisProperties.maLabelAlignment; get2DAxisMainLine(aStart, aEnd, aLabelAlign, fExtraLineCrossesOtherAxis); m_aAxisProperties.maLabelAlignment = aLabelAlign; - drawing::PointSequenceSequence aPoints{{ + drawing::PointSequenceSequence aPoints{std::initializer_list> + {std::initializer_list{ {static_cast(aStart.getX()), static_cast(aStart.getY())}, - {static_cast(aEnd.getX()), static_cast(aEnd.getY())} }}; + {static_cast(aEnd.getX()), static_cast(aEnd.getY())} }}}; Reference< drawing::XShape > xShape = m_pShapeFactory->createLine2D( m_xGroupShape_Shapes, aPoints, &m_aAxisProperties.m_aLineProperties ); }