diff options
author | Thorsten Behrens <tbehrens@novell.com> | 2011-06-21 09:11:28 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-06-22 12:55:16 +0200 |
commit | b036162d609b01e7b27e0eafc09cbd0192d95200 (patch) | |
tree | 6fe364b210c7a87fa753c101824594084a026be4 /svx/source/unodraw/XPropertyTable.cxx | |
parent | 4f314412dee35856ae70a8331047f7c54e07073b (diff) |
Teach LibreOffice proper svg:d support
Diffstat (limited to 'svx/source/unodraw/XPropertyTable.cxx')
-rw-r--r-- | svx/source/unodraw/XPropertyTable.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/unodraw/XPropertyTable.cxx b/svx/source/unodraw/XPropertyTable.cxx index 7fbe55de5c78..4c887860b656 100644 --- a/svx/source/unodraw/XPropertyTable.cxx +++ b/svx/source/unodraw/XPropertyTable.cxx @@ -40,12 +40,12 @@ #include <vcl/svapp.hxx> #include <cppuhelper/implbase2.hxx> -#include "unopolyhelper.hxx" #include <svx/xdef.hxx> #include "svx/unoapi.hxx" #include <editeng/unoprnms.hxx> #include <basegfx/polygon/b2dpolygon.hxx> +#include <basegfx/tools/unotools.hxx> using namespace com::sun::star; using namespace ::cppu; @@ -383,7 +383,8 @@ uno::Any SvxUnoXLineEndTable::getAny( const XPropertyEntry* pEntry ) const throw uno::Any aAny; drawing::PolyPolygonBezierCoords aBezier; - SvxConvertB2DPolyPolygonToPolyPolygonBezier( ((XLineEndEntry*)pEntry)->GetLineEnd(), aBezier ); + basegfx::unotools::b2DPolyPolygonToPolyPolygonBezier( ((XLineEndEntry*)pEntry)->GetLineEnd(), + aBezier ); aAny <<= aBezier; return aAny; } @@ -397,7 +398,7 @@ XPropertyEntry* SvxUnoXLineEndTable::getEntry( const OUString& rName, const uno: basegfx::B2DPolyPolygon aPolyPolygon; drawing::PolyPolygonBezierCoords* pCoords = (drawing::PolyPolygonBezierCoords*)rAny.getValue(); if( pCoords->Coordinates.getLength() > 0 ) - aPolyPolygon = SvxConvertPolyPolygonBezierToB2DPolyPolygon( pCoords ); + aPolyPolygon = basegfx::unotools::polyPolygonBezierToB2DPolyPolygon( *pCoords ); // #86265# make sure polygon is closed aPolyPolygon.setClosed(true); |