diff options
Diffstat (limited to 'drawinglayer/qa/unit/border.cxx')
-rw-r--r-- | drawinglayer/qa/unit/border.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drawinglayer/qa/unit/border.cxx b/drawinglayer/qa/unit/border.cxx index 40fa12280e3a..6f49a2447b77 100644 --- a/drawinglayer/qa/unit/border.cxx +++ b/drawinglayer/qa/unit/border.cxx @@ -17,6 +17,7 @@ #include <drawinglayer/geometry/viewinformation2d.hxx> #include <drawinglayer/primitive2d/borderlineprimitive2d.hxx> #include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx> +#include <rtl/ref.hxx> using namespace com::sun::star; @@ -51,11 +52,11 @@ void DrawinglayerBorderTest::testDoubleDecompositionSolid() basegfx::BColor aColorGap; bool bHasGapColor = false; sal_Int16 nStyle = table::BorderLineStyle::DOUBLE; - drawinglayer::primitive2d::BorderLinePrimitive2D aBorder(aStart, aEnd, fLeftWidth, fDistance, fRightWidth, fExtendLeftStart, fExtendLeftEnd, fExtendRightStart, fExtendRightEnd, aColorRight, aColorLeft, aColorGap, bHasGapColor, nStyle); + rtl::Reference<drawinglayer::primitive2d::BorderLinePrimitive2D> aBorder(new drawinglayer::primitive2d::BorderLinePrimitive2D(aStart, aEnd, fLeftWidth, fDistance, fRightWidth, fExtendLeftStart, fExtendLeftEnd, fExtendRightStart, fExtendRightEnd, aColorRight, aColorLeft, aColorGap, bHasGapColor, nStyle)); // Decompose it into polygons. drawinglayer::geometry::ViewInformation2D aView; - drawinglayer::primitive2d::Primitive2DContainer aContainer = aBorder.get2DDecomposition(aView); + drawinglayer::primitive2d::Primitive2DContainer aContainer = aBorder->get2DDecomposition(aView); // Make sure it results in two borders as it's a double one. CPPUNIT_ASSERT_EQUAL(static_cast<std::size_t>(2), aContainer.size()); |