Skip to content

Commit c55c412

Browse files
committed
Remove drawEllipse from dxf paint engine (default implementation calls drawPolygon)
1 parent 4bcdec8 commit c55c412

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/core/dxf/qgsdxfpaintengine.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,6 @@ void QgsDxfPaintEngine::drawRects( const QRectF* rects, int rectCount )
107107
}
108108
}
109109

110-
void QgsDxfPaintEngine::drawEllipse( const QRectF& rect )
111-
{
112-
QPoint midPoint(( rect.left() + rect.right() ) / 2.0, ( rect.top() + rect.bottom() ) / 2.0 );
113-
114-
//a circle
115-
if ( qgsDoubleNear( rect.width(), rect.height() ) )
116-
{
117-
mDxf->writeCircle( mLayer, currentColor(), toDxfCoordinates( midPoint ), rect.width() / 2.0 );
118-
}
119-
120-
//todo: create polyline for real ellises
121-
}
122-
123110
void QgsDxfPaintEngine::drawPath( const QPainterPath& path )
124111
{
125112
int pathLength = path.elementCount();

src/core/dxf/qgsdxfpaintengine.h

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class CORE_EXPORT QgsDxfPaintEngine: public QPaintEngine
3939

4040
void drawPolygon( const QPointF * points, int pointCount, PolygonDrawMode mode );
4141
void drawRects( const QRectF * rects, int rectCount );
42-
void drawEllipse( const QRectF& rect );
4342
void drawPath( const QPainterPath& path );
4443
void drawLines( const QLineF* lines, int lineCount );
4544

0 commit comments

Comments
 (0)