diff --git a/editor/svg-editor.html b/editor/svg-editor.html index 57e76025..b715131f 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -295,8 +295,7 @@
- - diff --git a/editor/svg-editor.js b/editor/svg-editor.js index e9e6046b..04b37b51 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -997,7 +997,12 @@ function svg_edit_setup() { alert('Invalid size. Width or height may not be 0.'); return false; } - $('#resolution').val(x+'x'+y); + var newOption = [x,'x',y].join(''); + $("#resolution").val(newOption).attr("selected", "selected"); + if ($("#resolution").val() != newOption) { + $('#resolution').append(''); + $("#resolution").val(newOption).attr("selected", "selected"); + } } } // svgCanvas.setResolution(x,y);