Skip to content

Commit

Permalink
Version 1.7.1.0.b
Browse files Browse the repository at this point in the history
  • Loading branch information
svenhb authored Dec 22, 2023
1 parent f4a99cf commit f0084d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GRBL-Plotter/MachineControl/GCode2DViewpaths.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ private static bool CreateDrawingPathFromGCode(GcodeByLine newL, GcodeByLine old
double y1 = (arcMove.center.Y - arcMove.radius);
double r2 = 2 * arcMove.radius;
double aStart = (arcMove.angleStart * 180 / Math.PI);
double aDiff = (arcMove.angleDiff * 180 / Math.PI);
double aDiff = Math.Abs(arcMove.angleDiff * 180 / Math.PI);

if ((aDiff < 0.1) && (arcMove.radius > 1000))
if ((aDiff != 0) && (aDiff < 1) && (arcMove.radius > 1000))
{ // just draw a line
path.AddLine((float)oldL.actualPos.X + viewOffset.X, (float)oldL.actualPos.Y + viewOffset.Y, (float)newL.actualPos.X + viewOffset.X, (float)newL.actualPos.Y + viewOffset.Y);
if ((path == pathPenDown) && (pathActualDown != null))
Expand Down

0 comments on commit f0084d2

Please sign in to comment.