Skip to content

Commit

Permalink
fix connectivity graph on windows
Browse files Browse the repository at this point in the history
issues is caused by another fix of heat map on windows
  • Loading branch information
lixun910 committed Dec 11, 2020
1 parent 142685b commit 5795d05
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions GdaShape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; i<its; i++) {
path.AddLineToPoint(points[i+1].x+nx, points[i+1].y+ny);
}
gc->StrokePath(path);
}
}

wxString GdaPolyLine::printDetails()
Expand Down

0 comments on commit 5795d05

Please sign in to comment.