Fixed yet another Opera/Win/non-EN bug caused when going from select-to-pathedit-to-select on a path rotated after cloning a new path with a curve
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1135 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
a01ceaf946
commit
52cd6198be
|
@ -4078,14 +4078,21 @@ function BatchCommand(text) {
|
|||
},
|
||||
resetOrientation: function(path) {
|
||||
if(path == null || path.nodeName != 'path') return false;
|
||||
|
||||
var tlist = canvas.getTransformList(path);
|
||||
var m = transformListToTransform(tlist).matrix;
|
||||
path.removeAttribute("transform");
|
||||
|
||||
var segList = path.pathSegList;
|
||||
var len = segList.numberOfItems;
|
||||
|
||||
|
||||
// Opera/win/non-EN throws an error here.
|
||||
// TODO: Find out why!
|
||||
try {
|
||||
var len = segList.numberOfItems;
|
||||
} catch(err) {
|
||||
var fixed_d = pathActions.convertPath(path);
|
||||
path.setAttribute('d', fixed_d);
|
||||
segList = path.pathSegList;
|
||||
var len = segList.numberOfItems;
|
||||
}
|
||||
for (var i = 0; i < len; ++i) {
|
||||
var seg = segList.getItem(i);
|
||||
var type = seg.pathSegType;
|
||||
|
|
Loading…
Reference in New Issue