style(ui): format graphics helper before placement repair

This commit is contained in:
aj committed 2026-10-07 17:18:48 -04:00
1 parent 9196d9157f
commit e7e4012974
1 file changed
+16 -16
+16 -16
View File
@@ -1,4 +1,4 @@
using System.Drawing;
using System.Drawing;
using System.Drawing.Drawing2D;
using OpenNest.CNC;
using OpenNest.Geometry;
@@ -354,23 +354,23 @@ namespace OpenNest
break;
case CodeType.SubProgramCall:
{
Flush();
var tmpmode = mode;
var subpgm = (SubProgramCall)code;
if (subpgm.Program != null)
{
curpos = new Vector(
frameOrigin.X + subpgm.Offset.X,
frameOrigin.Y + subpgm.Offset.Y
);
AddProgram(path, subpgm.Program, mode, ref curpos);
}
Flush();
var tmpmode = mode;
var subpgm = (SubProgramCall)code;
mode = tmpmode;
break;
}
if (subpgm.Program != null)
{
curpos = new Vector(
frameOrigin.X + subpgm.Offset.X,
frameOrigin.Y + subpgm.Offset.Y
);
AddProgram(path, subpgm.Program, mode, ref curpos);
}
mode = tmpmode;
break;
}
}
}