diff --git a/GRBL-Plotter/GCodeCreation/GraphicGenerateHatchFill.cs b/GRBL-Plotter/GCodeCreation/GraphicGenerateHatchFill.cs index 567fbce85..32add2ea7 100644 --- a/GRBL-Plotter/GCodeCreation/GraphicGenerateHatchFill.cs +++ b/GRBL-Plotter/GCodeCreation/GraphicGenerateHatchFill.cs @@ -476,7 +476,7 @@ private static void ClipLineByPolygone(Point p1, Point p2, List path f_length_to_be_removed_from_pt1 = d_and_a[j].s2; f_length_to_be_removed_from_pt2 = d_and_a[j + 1].s1; if ((f_initial_hatch_length - (f_length_to_be_removed_from_pt1 + f_length_to_be_removed_from_pt2)) <= f_min_allowed_hatch_length) - { Logger.Trace("Just don't insert"); } // # Just don't insert it into the hatch list + { }// Logger.Trace("Just don't insert"); } // # Just don't insert it into the hatch list else { Point pt1 = RelativeControlPointPosition(f_length_to_be_removed_from_pt1, x2 - x1, y2 - y1, x1, y1); diff --git a/GRBL-Plotter/GCodeCreation/XmlMarker.cs b/GRBL-Plotter/GCodeCreation/XmlMarker.cs index 4a184ba3b..797f03527 100644 --- a/GRBL-Plotter/GCodeCreation/XmlMarker.cs +++ b/GRBL-Plotter/GCodeCreation/XmlMarker.cs @@ -663,6 +663,13 @@ internal static bool GetGroupLast(ref BlockData tmp) public static bool GetGroup(int lineNR) { return GetGroup(lineNR, 0); } + public static int GetStartLineOfGroup(int index) + { + if ((index >=0) && (index < listGroups.Count)) + return listGroups[index].LineStart; + return -1; + } + public static bool GetGroup(int lineNR, int search) { if (listGroups.Count > 0)