diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-10-09 16:57:52 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-10-09 16:57:52 +0100 |
| commit | c21bdddc89b941099aac7bad64af11da73acab4e (patch) | |
| tree | 96c9e03c6e2445fb719c34f679e87b812ad2c220 /app/Report/ReportPdfImage.php | |
| parent | e24444eeefe1caed93aa11866313e0407b4ce028 (diff) | |
| download | webtrees-c21bdddc89b941099aac7bad64af11da73acab4e.tar.gz webtrees-c21bdddc89b941099aac7bad64af11da73acab4e.tar.bz2 webtrees-c21bdddc89b941099aac7bad64af11da73acab4e.zip | |
More type hints for reports
Diffstat (limited to 'app/Report/ReportPdfImage.php')
| -rw-r--r-- | app/Report/ReportPdfImage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Report/ReportPdfImage.php b/app/Report/ReportPdfImage.php index 02ad7df741..4358150774 100644 --- a/app/Report/ReportPdfImage.php +++ b/app/Report/ReportPdfImage.php @@ -41,14 +41,14 @@ class ReportPdfImage extends ReportBaseImage $curx = $renderer->GetX(); // Get the current positions - if ($this->x === -1) { + if ($this->x === ReportBaseElement::CURRENT_POSITION) { $this->x = $renderer->GetX(); } else { // For static position add margin $this->x = $renderer->addMarginX($this->x); $renderer->SetX($curx); } - if ($this->y === -1) { + if ($this->y === ReportBaseElement::CURRENT_POSITION) { //-- first check for a collision with the last picture if (isset($lastpicbottom)) { if (($renderer->PageNo() == $lastpicpage) && ($lastpicbottom >= $renderer->GetY()) && ($this->x >= $lastpicleft) && ($this->x <= $lastpicright) |
