Fix regression due to earlier fix of issue 937

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2072 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Ahmad Syazwan
2012-03-30 03:50:54 +00:00
parent f2c76b4b39
commit 2d74a7ace5
2 changed files with 15 additions and 2 deletions

View File

@@ -345,10 +345,12 @@ svgedit.utilities.getPathBBox = function(path) {
var bounds = [[], []];
var start = seglist.getItem(0);
var P0 = [start.x, start.y];
for(var i=0; i < tot; i++) {
var seg = seglist.getItem(i);
if(typeof seg.x == 'undefined') continue;
// Add actual points to limits
bounds[0].push(P0[0]);
bounds[1].push(P0[1]);