From 9202418d7c59517b22b197ef21d62bc43e9622fc Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 10 Aug 2017 19:36:31 +0300 Subject: [PATCH] Fix bug. Values "0" and "1" mean for us the same. --HG-- branch : feature --- src/libs/vtools/dialogs/support/dialogeditlabel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vtools/dialogs/support/dialogeditlabel.cpp b/src/libs/vtools/dialogs/support/dialogeditlabel.cpp index b581b02d1..074809c42 100644 --- a/src/libs/vtools/dialogs/support/dialogeditlabel.cpp +++ b/src/libs/vtools/dialogs/support/dialogeditlabel.cpp @@ -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);