Fixed issue 331 and updated svg-icon-loader

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@946 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2009-11-16 15:19:51 +00:00
parent 0278caccd8
commit 082523f7f7
2 changed files with 21 additions and 5 deletions

View File

@@ -1931,6 +1931,14 @@ function BatchCommand(text) {
call("selected", selectedElements);
}
}
// make sure the elements are in the correct order
selectedElements.sort(function(a,b) {
if(a && b && a.compareDocumentPosition) {
return 3 - (b.compareDocumentPosition(a) & 6);
}
});
if(showGrips) {
selectorManager.requestSelector(selectedElements[0]).showGrips(true);