Skip to content
Snippets Groups Projects
Commit 6e1335d8 authored by Thomas Oster's avatar Thomas Oster
Browse files

Merge pull request #52 from hghile/trailingzeros

Remove trailing zeros from raster3d generation.
parents 9275f17b 66092936
No related branches found
No related tags found
No related merge requests found
......@@ -477,6 +477,11 @@ abstract class EpilogCutter extends LaserCutter
line.remove(0);
jump++;
}
//Remove trailing zeroes
while (line.size() > 0 && line.get(line.size()-1) == 0)
{
line.remove(line.size()-1);
}
if (line.size() > 0)
{
out.printf("\033*p%dX", sp.x + jump);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment