Skip to content

Commit

Permalink
Remove drawEllipse from dxf paint engine (default implementation call…
Browse files Browse the repository at this point in the history
…s drawPolygon)
  • Loading branch information
mhugent committed Dec 19, 2013
1 parent 4bcdec8 commit c55c412
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions src/core/dxf/qgsdxfpaintengine.cpp
Expand Up @@ -107,19 +107,6 @@ void QgsDxfPaintEngine::drawRects( const QRectF* rects, int rectCount )
}
}

void QgsDxfPaintEngine::drawEllipse( const QRectF& rect )
{
QPoint midPoint(( rect.left() + rect.right() ) / 2.0, ( rect.top() + rect.bottom() ) / 2.0 );

//a circle
if ( qgsDoubleNear( rect.width(), rect.height() ) )
{
mDxf->writeCircle( mLayer, currentColor(), toDxfCoordinates( midPoint ), rect.width() / 2.0 );
}

//todo: create polyline for real ellises
}

void QgsDxfPaintEngine::drawPath( const QPainterPath& path )
{
int pathLength = path.elementCount();
Expand Down
1 change: 0 additions & 1 deletion src/core/dxf/qgsdxfpaintengine.h
Expand Up @@ -39,7 +39,6 @@ class CORE_EXPORT QgsDxfPaintEngine: public QPaintEngine

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

Expand Down

0 comments on commit c55c412

Please sign in to comment.