chiark / gitweb /
layout/plan-to-gui-data: xpmdata_pixel supports $pcharstr=undef, to simply adjust...
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 12 Dec 2010 12:53:57 +0000 (12:53 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 12 Dec 2010 12:53:57 +0000 (12:53 +0000)
layout/plan-to-gui-data

index 986dae9edf7ff1c7337f8c5107e260d0024c6c46..2a39c924c52f8de71649e7c8299ddacffb0ae8f8 100755 (executable)
@@ -177,7 +177,7 @@ sub xpmdata_pixel ($$$) {
        }
     }
     $was= $xp->{Pixels}{$p{Y}}{$p{X}};
-    if (defined($was) && $was gt $pcharstr) {
+    if (!defined $pcharstr || (defined($was) && $was gt $pcharstr)) {
 #print STDERR " already \`$was'\n";
        return;
     }