small fix

This commit is contained in:
Jordi Sanfeliu 2014-06-17 19:32:50 +02:00
parent 3c34d56ad4
commit 361fce3ff3
1 changed files with 3 additions and 3 deletions

View File

@ -90,12 +90,12 @@ sub setup_riglim {
my ($rigid, $limit) = @_; my ($rigid, $limit) = @_;
my @riglim; my @riglim;
my ($upper, $lower) = split(':', trim($limit)); my ($upper, $lower) = split(':', trim($limit) || "0:0");
if(trim($rigid) eq 1) { if(trim($rigid || 0) eq 1) {
push(@riglim, "--upper-limit=" . ($upper || 0)); push(@riglim, "--upper-limit=" . ($upper || 0));
push(@riglim, "--lower-limit=" . ($lower || 0)); push(@riglim, "--lower-limit=" . ($lower || 0));
} else { } else {
if(trim($rigid) eq 2) { if(trim($rigid || 0) eq 2) {
push(@riglim, "--upper-limit=" . ($upper || 0)); push(@riglim, "--upper-limit=" . ($upper || 0));
push(@riglim, "--lower-limit=" . ($lower || 0)); push(@riglim, "--lower-limit=" . ($lower || 0));
push(@riglim, "--rigid"); push(@riglim, "--rigid");