don't set alpha to 0 when color was N/A
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@255 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
a485b53595
commit
b7562af19e
|
@ -453,12 +453,12 @@ function svg_edit_setup() {
|
|||
}
|
||||
var was_none = false;
|
||||
if (color == 'transparent' || color == 'initial') {
|
||||
color = new $.jPicker.Color({ hex: 'ffffff', a: 0 });
|
||||
color = new $.jPicker.Color({ hex: 'ffffff', a: 100 });
|
||||
was_none = true;
|
||||
} else {
|
||||
var alpha;
|
||||
if (oldopacity == 'N/A') {
|
||||
alpha = 0;
|
||||
alpha = 100;
|
||||
} else {
|
||||
alpha = oldopacity.split(' ')[0];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue