Skip to content

fix: LogPart length#3997

Open
arng40 wants to merge 8 commits intodevelopfrom
bugfix/dudes/logPart-length
Open

fix: LogPart length#3997
arng40 wants to merge 8 commits intodevelopfrom
bugfix/dudes/logPart-length

Conversation

@arng40
Copy link
Copy Markdown
Contributor

@arng40 arng40 commented Mar 16, 2026

Fix a length bug where when we have a description >100 characters the logPart maxLength is not taken into account

@arng40 arng40 self-assigned this Mar 17, 2026
@arng40 arng40 marked this pull request as ready for review March 17, 2026 11:12
@arng40 arng40 added flag: ready for review flag: no rebaseline Does not require rebaseline labels Mar 17, 2026
@arng40 arng40 changed the title Fix: LogPart length fix: LogPart length Mar 17, 2026
double clamp( double v, double min, double max )
{
return std::min( max, std::max( min, v ));
return LvArray::math::min( max, LvArray::math::max( min, v ));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this change, could be added to the automatic code rules and the docs. There's some more in log-parts.

size_t const borderSpaceWidth = m_nbBorderChar * 2 + m_borderMargin * 2;

size_t const formattingCharSize = borderSpaceWidth;
size_t const decorationWidth = borderSpaceWidth;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Names are better in your PR, indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants