Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
8e9fa613e3
1 changed files with 14 additions and 4 deletions
|
@ -62,6 +62,16 @@ class DefaultLabel extends RectangleSheet
|
||||||
|
|
||||||
$this->columns = ($usableWidth + $this->labelSpacingH) / ($this->labelWidth + $this->labelSpacingH);
|
$this->columns = ($usableWidth + $this->labelSpacingH) / ($this->labelWidth + $this->labelSpacingH);
|
||||||
$this->rows = ($usableHeight + $this->labelSpacingV) / ($this->labelHeight + $this->labelSpacingV);
|
$this->rows = ($usableHeight + $this->labelSpacingV) / ($this->labelHeight + $this->labelSpacingV);
|
||||||
|
|
||||||
|
// Make sure the columns and rows are never zero, since that scenario should never happen
|
||||||
|
if ($this->columns == 0) {
|
||||||
|
$this->columns = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->rows == 0) {
|
||||||
|
$this->rows = 1;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getUnit() { return 'in'; }
|
public function getUnit() { return 'in'; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue