@@ -142,8 +142,9 @@ |
||
142 | 142 | foreach($row AS $c=>$pixel){ |
143 | 143 | if($pixel){ |
144 | 144 | $count++; |
145 | - if($from < 0) |
|
146 | - $from = $c; |
|
145 | + if($from < 0){ |
|
146 | + $from = $c; |
|
147 | + } |
|
147 | 148 | } |
148 | 149 | else if($from >= 0){ |
149 | 150 | echo '<rect x="' . ($from * $this->options->pixelSize + $this->options->marginSize) . '" y="' . ($r * $this->options->pixelSize + $this->options->marginSize) . '" width="' . ($this->options->pixelSize * $count) . '" height="' . $this->options->pixelSize . '" class="' . $class . '" />'; |