summaryrefslogtreecommitdiff
path: root/svx/source/customshapes/EnhancedCustomShape2d.cxx
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-03 13:53:29 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-03 13:53:29 +0200
commit855d7bc6b19357788193cb57a013867866367ecd (patch)
tree04776ab36571af8a9d6058ed0d3720cb17ead695 /svx/source/customshapes/EnhancedCustomShape2d.cxx
parent76bbe5ff357406ac1e0f212373c9fd4132b0d178 (diff)
Revert "#121437# Added patch from Regina which implements QuadraticBezier segemnts to CustomShapes"
This reverts commit 76bbe5ff357406ac1e0f212373c9fd4132b0d178.
Diffstat (limited to 'svx/source/customshapes/EnhancedCustomShape2d.cxx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShape2d.cxx30
1 files changed, 0 insertions, 30 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx
index e5d5c2bae481..0675abde78c8 100644
--- a/svx/source/customshapes/EnhancedCustomShape2d.cxx
+++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx
@@ -1562,36 +1562,6 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm
}
break;
- case QUADRATICCURVETO :
- {
- for ( sal_uInt16 i = 0; ( i < nPntCount ) && ( ( rSrcPt + 1 ) < nCoordSize ); i++ )
- {
- if ( rSrcPt )
- {
- const Point aPreviousEndPoint(GetPoint( seqCoordinates[ rSrcPt - 1 ], sal_True, sal_True));
- const Point aControlQ(GetPoint( seqCoordinates[ rSrcPt++ ], sal_True, sal_True ));
- const Point aEnd(GetPoint( seqCoordinates[ rSrcPt++ ], sal_True, sal_True ));
- const Point aControlA((aPreviousEndPoint + (aControlQ * 2)) / 3);
- const Point aControlB(((aControlQ * 2) + aEnd) / 3);
-
- DBG_ASSERT(aNewB2DPolygon.count(), "EnhancedCustomShape2d::CreateSubPath: Error in adding Q control point (!)");
- aNewB2DPolygon.appendBezierSegment(
- basegfx::B2DPoint(aControlA.X(), aControlA.Y()),
- basegfx::B2DPoint(aControlB.X(), aControlB.Y()),
- basegfx::B2DPoint(aEnd.X(), aEnd.Y()));
- }
- else // no previous point , do a moveto
- {
- rSrcPt++; // skip control point
- const Point aEnd(GetPoint( seqCoordinates[ rSrcPt++ ], sal_True, sal_True ));
-
- DBG_ASSERT(aNewB2DPolygon.count(), "EnhancedCustomShape2d::CreateSubPath: Error in adding Q control point (!)");
- aNewB2DPolygon.append(basegfx::B2DPoint(aEnd.X(), aEnd.Y()));
- }
- }
- }
- break;
-
case ANGLEELLIPSE :
{
if ( nPntCount )