Fixed issue 681

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1740 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2010-09-21 15:30:14 +00:00
parent a0914b8a01
commit 2b09b9d8bf
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@
var setSelectMode = function() {
var curr = $('.tool_button_current');
if(curr[0].id !== 'tool_select') {
if(curr.length && curr[0].id !== 'tool_select') {
curr.removeClass('tool_button_current').addClass('tool_button');
$('#tool_select').addClass('tool_button_current').removeClass('tool_button');
$('#styleoverrides').text('#svgcanvas svg *{cursor:move;pointer-events:all} #svgcanvas svg{cursor:default}');