diff --git a/GdaShape.cpp b/GdaShape.cpp index a9a8c9408..a9183e18d 100644 --- a/GdaShape.cpp +++ b/GdaShape.cpp @@ -1740,6 +1740,19 @@ void GdaPolyLine::paintSelf(wxDC& dc) void GdaPolyLine::paintSelf(wxGraphicsContext* gc) { + if (null_shape) return; + gc->SetPen(getPen()); + gc->SetBrush(getBrush()); + int nx = getXNudge(); + int ny = getYNudge(); + if (n > 1) { + wxGraphicsPath path = gc->CreatePath(); + path.MoveToPoint(points[0].x+nx, points[0].y+ny); + for (int i=0, its=n-1; iStrokePath(path); + } } wxString GdaPolyLine::printDetails()