Permalink
Browse files

fix incorrect saving of drawings

  • Loading branch information...
ssadedin committed Mar 20, 2018
1 parent 1489e2b commit fac382feb56846cd6d10266fba2868af03df4920
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/main/groovy/graxxia/Drawing.groovy
@@ -467,7 +467,7 @@ class Drawing {
def yTickPoints = yAxis.collect { txY(it) }
save {
def draw = {
g.setStroke(DASHED)
lines([minX[0]] * (yAxis.size()-2), yAxis[1..-2], [maxX[-1]]*(yAxis.size()-2), yAxis[1..-2])
g.setStroke(SOLID)
@@ -478,6 +478,12 @@ class Drawing {
text(xMargin-40, it[1], it[0])
}
}
if(autoSave)
save(draw)
else
draw()
coordType = Drawing.Coord.PLOT
return this
}

0 comments on commit fac382f

Please sign in to comment.