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-75d572ba1ddd
master
Pavol Rusnak 2009-07-02 17:35:30 +00:00
parent a485b53595
commit b7562af19e
1 changed files with 2 additions and 2 deletions

View File

@ -453,12 +453,12 @@ function svg_edit_setup() {
} }
var was_none = false; var was_none = false;
if (color == 'transparent' || color == 'initial') { if (color == 'transparent' || color == 'initial') {
color = new $.jPicker.Color({ hex: 'ffffff', a: 0 }); color = new $.jPicker.Color({ hex: 'ffffff', a: 100 });
was_none = true; was_none = true;
} else { } else {
var alpha; var alpha;
if (oldopacity == 'N/A') { if (oldopacity == 'N/A') {
alpha = 0; alpha = 100;
} else { } else {
alpha = oldopacity.split(' ')[0]; alpha = oldopacity.split(' ')[0];
} }