diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-06-06 02:12:08 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-06 07:11:47 +0000 |
commit | 738aefb51aa034188a5342b4b04e15629038e087 (patch) | |
tree | 8827d7e17f8a66e85846a3f967141284318d4321 /chart2/source | |
parent | 3e2ce043daeb4ba470a64909765336e9bc931fd4 (diff) |
follow up fix: initialise PointSequenceSequence directly
commit e95be04a73e977022455335d7cbf56804638f761
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>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/view/axes/VCartesianAxis.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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<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>(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( m_xGroupShape_Shapes, aPoints, &m_aAxisProperties.m_aLineProperties ); } |