fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-10-27 04:48 am

[s2] clean up log messages that appear when global warnings are on

[commit: http://hg.dwscoalition.org/s2/rev/7a452ff4f70c]

http://bugs.dwscoalition.org/show_bug.cgi?id=3040

Warnings cleanup.

Patch by [personal profile] kareila.

Files modified:
  • S2.pm
--------------------------------------------------------------------------------
diff -r 9af6912f1533 -r 7a452ff4f70c S2.pm
--- a/S2.pm	Sat Oct 23 10:15:06 2010 +0800
+++ b/S2.pm	Wed Oct 27 12:47:57 2010 +0800
@@ -156,7 +156,7 @@ sub get_style_modtime
     my $high = 0;
     foreach (@{$ctx->[LAYERLIST]}) {
         $high = $Domains{$CurrentDomain}{layercomp}{$_}
-            if $Domains{$CurrentDomain}{layercomp}{$_} > $high;
+            if ( $Domains{$CurrentDomain}{layercomp}{$_} || 0 ) > $high;
     }
     return $high;
 }
--------------------------------------------------------------------------------