Skip to content

Commit

Permalink
- Repair setup in LineEdit::SetAlignment() where comparison was aga…
Browse files Browse the repository at this point in the history
…inst itself.
  • Loading branch information
mjr4077au authored and dpjudas committed Jan 7, 2024
1 parent be610ec commit 31f1cf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/widgets/lineedit/lineedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ void LineEdit::SetReadOnly(bool enable)
}
}

void LineEdit::SetAlignment(Alignment alignment)
void LineEdit::SetAlignment(Alignment newalignment)
{
if (alignment != alignment)
if (alignment != newalignment)
{
alignment = alignment;
alignment = newalignment;
Update();
}
}
Expand Down

0 comments on commit 31f1cf3

Please sign in to comment.