diff --git a/editor/images/polygon.svg b/editor/images/polygon.svg index 92fe0418..a7f955d8 100644 --- a/editor/images/polygon.svg +++ b/editor/images/polygon.svg @@ -12,7 +12,6 @@ sodipodi:docname="draw-polygon.svg" sodipodi:docbase="/home/andreas/projekt/tango/22" inkscape:version="0.42" - sodipodi:version="0.32" id="svg8728" height="22.000000px" width="22.000000px" diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 9a273341..85d15419 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -583,7 +583,14 @@ function svg_edit_setup() { changeOpacity(false, perc); }); + // For slider usage, see: http://jqueryui.com/demos/slider/ $("#opac_slider").slider({ + start: function() { + $('#opacity_dropdown li:not(.special)').hide(); + }, + stop: function() { + $('#opacity_dropdown li').show(); + }, slide: function(evt, ui){ changeOpacity(ui); } diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 1374b479..9702eb7b 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -4610,8 +4610,10 @@ function BatchCommand(text) { } // for each elem svgroot.unsuspendRedraw(handle); - // Calling changed here will cause the toolbar to be updated too many times -// call("changed", elems); + // Only call "changed" if really necessary, as it updates the toolbar each time + if(current_mode == 'rotate') { + call("changed", elems); + } }; // This function returns a BatchCommand object which summarizes the