[dw-free] Cleared colors do not stick when using the customization wizard
[commit: http://hg.dwscoalition.org/dw-free/rev/e9a5878c4c11]
http://bugs.dwscoalition.org/show_bug.cgi?id=3232
Let transparent colors stick.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3232
Let transparent colors stick.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/LJ/S2.pm
-------------------------------------------------------------------------------- diff -r f904d09edf49 -r e9a5878c4c11 cgi-bin/LJ/S2.pm --- a/cgi-bin/LJ/S2.pm Fri Nov 19 15:58:17 2010 -0600 +++ b/cgi-bin/LJ/S2.pm Mon Nov 22 14:24:23 2010 +0800 @@ -2927,6 +2927,7 @@ sub Color__Color my ($s) = @_; $s =~ s/^\#//; $s =~ s/^(\w)(\w)(\w)$/$1$1$2$2$3$3/s; # 'c30' => 'cc3300' + return { '_type' => 'Color', as_string => "" } if $s eq ""; return if $s =~ /[^a-fA-F0-9]/ || length($s) != 6; my $this = { '_type' => 'Color' }; --------------------------------------------------------------------------------