Fixed remaining bug for 164 and additional bug that selects correct paint tab on change to gradient
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@561 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -743,11 +743,9 @@ function svg_edit_setup() {
|
||||
var colorPicker = function(elem) {
|
||||
var picker = elem.attr('id') == 'stroke_color' ? 'stroke' : 'fill';
|
||||
var opacity = (picker == 'stroke' ? $('#stroke_opacity') : $('#fill_opacity'));
|
||||
|
||||
var paint = (picker == 'stroke' ? strokePaint : fillPaint);
|
||||
var title = (picker == 'stroke' ? 'Pick a Stroke Paint and Opacity' : 'Pick a Fill Paint and Opacity');
|
||||
var was_none = false;
|
||||
|
||||
if (paint.type == "none") {
|
||||
// if it was none, then set to solid white
|
||||
paint = new $.jGraduate.Paint({solidColor: 'ffffff'});
|
||||
@@ -784,7 +782,7 @@ function svg_edit_setup() {
|
||||
else {
|
||||
svgCanvas.setFillPaint(paint, true);
|
||||
}
|
||||
|
||||
updateToolbar();
|
||||
$('#color_picker').hide();
|
||||
},
|
||||
function(p) {
|
||||
|
||||
Reference in New Issue
Block a user