follow up fix: initialise PointSequenceSequence directly
commit e95be04a73
uses wrong ctor: Sequence( sal_Int32 len )
Change-Id: I08751c10942f705ead008155a6e7e9dcfb0a2ca9
Reviewed-on: https://gerrit.libreoffice.org/25945
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
This commit is contained in:
committed by
Markus Mohrhard
parent
3e2ce043da
commit
738aefb51a
@@ -1849,9 +1849,10 @@ void VCartesianAxis::createShapes()
|
|||||||
AxisLabelAlignment aLabelAlign = m_aAxisProperties.maLabelAlignment;
|
AxisLabelAlignment aLabelAlign = m_aAxisProperties.maLabelAlignment;
|
||||||
get2DAxisMainLine(aStart, aEnd, aLabelAlign, fExtraLineCrossesOtherAxis);
|
get2DAxisMainLine(aStart, aEnd, aLabelAlign, fExtraLineCrossesOtherAxis);
|
||||||
m_aAxisProperties.maLabelAlignment = aLabelAlign;
|
m_aAxisProperties.maLabelAlignment = aLabelAlign;
|
||||||
drawing::PointSequenceSequence aPoints{{
|
drawing::PointSequenceSequence aPoints{std::initializer_list<uno::Sequence<awt::Point>>
|
||||||
|
{std::initializer_list<awt::Point>{
|
||||||
{static_cast<sal_Int32>(aStart.getX()), static_cast<sal_Int32>(aStart.getY())},
|
{static_cast<sal_Int32>(aStart.getX()), static_cast<sal_Int32>(aStart.getY())},
|
||||||
{static_cast<sal_Int32>(aEnd.getX()), static_cast<sal_Int32>(aEnd.getY())} }};
|
{static_cast<sal_Int32>(aEnd.getX()), static_cast<sal_Int32>(aEnd.getY())} }}};
|
||||||
Reference< drawing::XShape > xShape = m_pShapeFactory->createLine2D(
|
Reference< drawing::XShape > xShape = m_pShapeFactory->createLine2D(
|
||||||
m_xGroupShape_Shapes, aPoints, &m_aAxisProperties.m_aLineProperties );
|
m_xGroupShape_Shapes, aPoints, &m_aAxisProperties.m_aLineProperties );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user