Skip to content

Commit

Permalink
Fix incorrect "centered" justification drawing of some text objects
Browse files Browse the repository at this point in the history
Fixed an issue where some text objects that should have been both vertically
and horizontally justified would instead only be drawn as vertically
center justified.
  • Loading branch information
ad3154 committed Nov 16, 2023
1 parent 39d0cb5 commit ccbfd86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/InputNumberComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Justification InputNumberComponent::convert_justification(HorizontalJustificatio

case VerticalJustification::PositionMiddle:
{
retVal = Justification::verticallyCentred;
retVal = Justification::centred;
}
break;

Expand Down
2 changes: 1 addition & 1 deletion src/OutputNumberComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Justification OutputNumberComponent::convert_justification(HorizontalJustificati

case VerticalJustification::PositionMiddle:
{
retVal = Justification::verticallyCentred;
retVal = Justification::centred;
}
break;

Expand Down
2 changes: 1 addition & 1 deletion src/OutputStringComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Justification OutputStringComponent::convert_justification(HorizontalJustificati

case VerticalJustification::PositionMiddle:
{
retVal = Justification::verticallyCentred;
retVal = Justification::centred;
}
break;

Expand Down

0 comments on commit ccbfd86

Please sign in to comment.