canvastable: fix logic error in ::compute_bounding_box()
Since the bbox is determined by ::compute(), do not unconditionally clear it here
This commit is contained in:
parent
bfc3c51052
commit
e670acbb0d
@ -108,8 +108,8 @@ Table::child_changed (bool bbox_changed)
|
|||||||
void
|
void
|
||||||
Table::compute_bounding_box() const
|
Table::compute_bounding_box() const
|
||||||
{
|
{
|
||||||
_bounding_box = Rect();
|
|
||||||
if (cells.empty()) {
|
if (cells.empty()) {
|
||||||
|
_bounding_box = Rect();
|
||||||
bb_clean ();
|
bb_clean ();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -630,6 +630,8 @@ Table::compute (Rect const & within)
|
|||||||
|
|
||||||
_bounding_box = Rect (0, 0, hpos, vpos);
|
_bounding_box = Rect (0, 0, hpos, vpos);
|
||||||
|
|
||||||
|
DEBUG_TRACE (DEBUG::CanvasTable, string_compose ("table bbox in compute() %1\n", _bounding_box));
|
||||||
|
|
||||||
/* return our size */
|
/* return our size */
|
||||||
|
|
||||||
return Duple (hpos, vpos);
|
return Duple (hpos, vpos);
|
||||||
|
Loading…
Reference in New Issue
Block a user