Переглянути джерело

apparently someone thought it was a good idea to overwrite my bug fix... fixed again

Simon Van Mierlo 8 роки тому
батько
коміт
31613fdfab
1 змінених файлів з 8 додано та 4 видалено
  1. 8 4
      csworker.js

+ 8 - 4
csworker.js

@@ -711,12 +711,16 @@ with AToMPM.  If not, see <http://www.gnu.org/licenses/>.
 					continue;
 
 				var ldi 		= vobjs[vid]['$linkDecoratorInfo']['value'],
-					 pp  		= _svg.fns.getPointOnPathAtRatio(path,ldi.xratio),
-					 yoffset	= new _svg.types.Point(0,ldi.yoffset).rotate(pp.O),
-					 endAt	= (ldi.xratio >= 1 ? 
+					 pp  		= _svg.fns.getPointOnPathAtRatio(path,ldi.xratio);
+                     
+                if (pp == undefined)
+                    continue
+                
+				var yoffset	= new _svg.types.Point(0,ldi.yoffset).rotate(pp.O),
+					endAt	= (ldi.xratio >= 1 ? 
 						 				new _svg.types.Point(100,0).rotate(pp.O) :
 										new _svg.types.Point(0,0)),
-					 changes = {};
+					changes = {};
 				pp.x += yoffset.x - link['position']['value'][0];
 				pp.y += yoffset.y - link['position']['value'][1];