diff options
| author | makitso <makitso@gmail.com> | 2014-06-04 06:56:44 -0500 |
|---|---|---|
| committer | makitso <makitso@gmail.com> | 2014-06-04 06:56:44 -0500 |
| commit | dd4ecc9f805c75eb0675aeb1b643e8d7b299a85c (patch) | |
| tree | 7ca99bd4dc6618f83a125ad651e5afde11182a7b /library | |
| parent | bbec63872ba8fccd5301c10640099d90c16e5d58 (diff) | |
| download | webtrees-dd4ecc9f805c75eb0675aeb1b643e8d7b299a85c.tar.gz webtrees-dd4ecc9f805c75eb0675aeb1b643e8d7b299a85c.tar.bz2 webtrees-dd4ecc9f805c75eb0675aeb1b643e8d7b299a85c.zip | |
Familybook - fix more vertical line end cases.
Diffstat (limited to 'library')
| -rw-r--r-- | library/WT/Controller/Familybook.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/library/WT/Controller/Familybook.php b/library/WT/Controller/Familybook.php index 3e45e4f101..1ce14ff2e8 100644 --- a/library/WT/Controller/Familybook.php +++ b/library/WT/Controller/Familybook.php @@ -211,7 +211,7 @@ class WT_Controller_Familybook extends WT_Controller_Chart { $bwidth = $tempw; $bheight = $temph; $numkids += 0.95; - echo '</td><td></td>'; + echo '</td><td>'; } } } @@ -269,7 +269,7 @@ class WT_Controller_Familybook extends WT_Controller_Chart { } } $savlh=$lh; // Save current line height - if ($genoffset<=$famcount) { + if ($count==1 && $genoffset<=$famcount) { $linefactor=0; $tblheight=$bheight+8; if ($genoffset>2) { // genoffset of 2 needs no adjustment @@ -316,11 +316,9 @@ class WT_Controller_Familybook extends WT_Controller_Chart { echo '</td>'; } else { echo '<td>'; - if ($count<$genoffset-1) { + if ($genoffset>$count) { echo '<table>'; - for ($i=$count; $i<(pow(2, ($genoffset)-$count)/2)+2; $i++) { - $this->printEmptyBox($bwidth, $bheight); - echo '</tr>'; + for ($i=1; $i<(pow(2, ($genoffset)-$count)/2); $i++) { $this->printEmptyBox($bwidth, $bheight); echo '</tr>'; } |
