Fix bug in shift-click handling for stroke color

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@137 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-06-17 02:21:32 +00:00
parent 8ce1b3fea7
commit 033062049f
1 changed files with 2 additions and 1 deletions

View File

@ -163,7 +163,8 @@ function svg_edit_setup() {
} else { } else {
$(id).css('background', color); $(id).css('background', color);
} }
svgCanvas.setFillColor(color); if (evt.shiftKey) svgCanvas.setStrokeColor(color);
else svgCanvas.setFillColor(color);
}); });
// This is a common function used when a tool has been clicked (chosen) // This is a common function used when a tool has been clicked (chosen)