Two SVG-Editor buglets
Should not be able to convert a foreignObject to a path. #foreignObject_panel should always be initially invisible.
This commit is contained in:
parent
c608cedab9
commit
afcdc932ff
2 changed files with 3 additions and 2 deletions
|
@ -772,7 +772,7 @@ function svg_edit_setup() {
|
|||
}
|
||||
|
||||
// Elements in this array cannot be converted to a path
|
||||
var no_path = $.inArray(elname, ['image', 'text', 'path', 'g', 'use']) == -1;
|
||||
var no_path = $.inArray(elname, ['image', 'text', 'path', 'g', 'use', 'foreignObject']) == -1;
|
||||
$('#tool_topath').toggle(no_path);
|
||||
$('#tool_reorient').toggle(elname == 'path');
|
||||
$('#tool_reorient').toggleClass('disabled', angle == 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue