Skip to content

Commit

Permalink
Fix table cell backgrounds not being completely filled sometimes
Browse files Browse the repository at this point in the history
Needed to cache and reapply bounding boxes to cells after adjusting their scalings.
  • Loading branch information
Blake-Madden committed Dec 28, 2024
1 parent b76ca43 commit 8d1cf4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/graphs/table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,9 @@ namespace Wisteria::Graphs
// homogenize cells' text scaling to the smallest size and add them
for (auto& cellLabel : cellLabels)
{
const wxRect bBox = cellLabel->GetBoundingBox(dc);
cellLabel->SetScaling(smallestTextScaling);
cellLabel->SetBoundingBox(bBox, dc, GetScaling());
// if using page alignment other than left aligned, then adjust its position
if (horizontalAlignmentOffset > 0 || verticalAlignmentOffset > 0)
{
Expand Down

0 comments on commit 8d1cf4a

Please sign in to comment.