Просмотр исходного кода

fixed crash during transformation

Simon Van Mierlo 8 лет назад
Родитель
Сommit
6b039a9045
1 измененных файлов с 7 добавлено и 2 удалено
  1. 7 2
      csworker.js

+ 7 - 2
csworker.js

@@ -711,8 +711,13 @@ 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),
+					 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)),