From 2b09b9d8bf8a8471b47bd6b115572084391ba92e Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Tue, 21 Sep 2010 15:30:14 +0000 Subject: [PATCH] Fixed issue 681 git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1740 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 53dd0f2d..9af6dac7 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -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}');