summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/poly.h2
-rw-r--r--tools/source/generic/poly.cxx7
2 files changed, 3 insertions, 6 deletions
diff --git a/tools/inc/poly.h b/tools/inc/poly.h
index 17819ac93482..708ebb69bd95 100644
--- a/tools/inc/poly.h
+++ b/tools/inc/poly.h
@@ -38,7 +38,7 @@ public:
ImplPolygon( const tools::Rectangle& rRect, sal_uInt32 nHorzRound, sal_uInt32 nVertRound);
ImplPolygon( const Point& rCenter, long nRadX, long nRadY );
ImplPolygon( const tools::Rectangle& rBound, const Point& rStart, const Point& rEnd,
- PolyStyle eStyle, bool bFullCircle );
+ PolyStyle eStyle );
ImplPolygon( const Point& rBezPt1, const Point& rCtrlPt1, const Point& rBezPt2,
const Point& rCtrlPt2, sal_uInt16 nPoints );
ImplPolygon(const basegfx::B2DPolygon& rPolygon);
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index fc31507d93ec..08d6a3eeee84 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -224,7 +224,7 @@ ImplPolygon::ImplPolygon( const Point& rCenter, long nRadX, long nRadY )
}
ImplPolygon::ImplPolygon( const tools::Rectangle& rBound, const Point& rStart, const Point& rEnd,
- PolyStyle eStyle, bool bFullCircle )
+ PolyStyle eStyle )
{
const long nWidth = rBound.GetWidth();
const long nHeight = rBound.GetHeight();
@@ -269,9 +269,6 @@ ImplPolygon::ImplPolygon( const tools::Rectangle& rBound, const Point& rStart, c
if( fDiff < 0. )
fDiff += F_2PI;
- if ( bFullCircle )
- fDiff = F_2PI;
-
// Proportionally shrink number of points( fDiff / (2PI) );
nPoints = std::max( static_cast<sal_uInt16>( ( fDiff * 0.1591549 ) * nPoints ), sal_uInt16(16) );
fStep = fDiff / ( nPoints - 1 );
@@ -902,7 +899,7 @@ Polygon::Polygon( const Point& rCenter, long nRadX, long nRadY )
}
Polygon::Polygon( const tools::Rectangle& rBound, const Point& rStart, const Point& rEnd,
- PolyStyle eStyle, bool bFullCircle ) : mpImplPolygon(ImplPolygon(rBound, rStart, rEnd, eStyle, bFullCircle))
+ PolyStyle eStyle ) : mpImplPolygon(ImplPolygon(rBound, rStart, rEnd, eStyle))
{
}