diff --git a/base.js b/base.js index 446a735..6a76ed5 100644 --- a/base.js +++ b/base.js @@ -436,7 +436,9 @@ function Shape() { } else if (this._shapedata[i][0]=="L") { cr.lineTo(this._shapedata[i][1],this._shapedata[i][2]) } else if (this._shapedata[i][0]=="C") { - cr.bezierCurveTo(this._shapedata[i][1],this._shapedata[i][2],this._shapedata[i][3],this._shapedata[i][4],this._shapedata[i][5],this._shapedata[i][6]) + cr.bezierCurveTo(this._shapedata[i][1],this._shapedata[i][2], + this._shapedata[i][3]-1e-5,this._shapedata[i][4]+1e-5, + this._shapedata[i][5]-1e-5,this._shapedata[i][6]+1e-5) } } if (this.filled) { diff --git a/svlgui.py b/svlgui.py index 1cff8fb..bda0ff5 100644 --- a/svlgui.py +++ b/svlgui.py @@ -1974,6 +1974,7 @@ class frame: obj.draw(cr, self) result = [dodraw(obj, cr) for obj in self.objs] if currentselect: + print "Currentselect:",currentselect cr.gsave() cr.newpath() cr.pencolor = Colors.rgb(0,0,1) @@ -2449,7 +2450,7 @@ class Group (object): retval += self.name+"._layers["+str(i)+"]._frames["+str(j)+"]."+k.name+"._x = "+str(k.x)+";\n" retval += self.name+"._layers["+str(i)+"]._frames["+str(j)+"]."+k.name+"._y = "+str(k.y)+";\n" retval += self.name+"._layers["+str(i)+"]._frames["+str(j)+"]."+k.name+"._rotation = "+str(k.rot)+";\n" - retval += self.name+"._layers["+str(i)+"]._frames["+str(j)+"].actions = \""+self.layers[i].frames[j].actions.replace("\n"," ")+"\"\n" + retval += self.name+"._layers["+str(i)+"]._frames["+str(j)+"].actions = \""+self.layers[i].frames[j].actions.replace("\n"," ").replace("\\","\\\\").replace("\"","\\\"")+"\"\n" return retval def set_cursor(curs, widget=None):