Fix bug. Values "0" and "1" mean for us the same.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-08-10 19:36:31 +03:00
parent c989cdf048
commit 9202418d7c

View File

@ -96,7 +96,7 @@ void DialogEditLabel::ShowLineDetails()
const int lineAlignment = line->textAlignment();
if (lineAlignment & Qt::AlignLeft)
if (lineAlignment == 0 || lineAlignment & Qt::AlignLeft)
{
ui->toolButtonTextLeft->setChecked(true);
ui->toolButtonTextCenter->setChecked(false);