Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage committed Dec 16, 2024
1 parent 08645d3 commit 3c52b8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/layout/tablebox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ void TableBox::updateOverflowRect()
}
}

void TableBox::computeIntrinsicWidths(float& minWidth, float& maxPreferredWidth) const
void TableBox::computeIntrinsicWidths(float& minWidth, float& maxWidth) const
{
if(!m_columns.empty()) {
m_tableLayout->computeIntrinsicWidths(minWidth, maxPreferredWidth);
m_tableLayout->computeIntrinsicWidths(minWidth, maxWidth);
minWidth += borderHorizontalSpacing() * (m_columns.size() + 1);
maxPreferredWidth += borderHorizontalSpacing() * (m_columns.size() + 1);
maxWidth += borderHorizontalSpacing() * (m_columns.size() + 1);
}

for(auto caption : m_captions) {
minWidth = std::max(minWidth, caption->minPreferredWidth());
maxPreferredWidth = std::max(maxPreferredWidth, caption->minPreferredWidth());
maxWidth = std::max(maxWidth, caption->minPreferredWidth());
}
}

Expand Down

0 comments on commit 3c52b8c

Please sign in to comment.