From 463b37fe21e51f0b68b8354e8f23b9d28dd7c00e Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Wed, 25 Jan 2012 04:23:36 +0000 Subject: [PATCH] CMessageBox: Buttons draw better - Missing 'else' added. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2075 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d85f287f5e669a8cd1eec065309356def966ea26 Author: Michael Liebmann Date: 2012-01-25 (Wed, 25 Jan 2012) Origin message was: ------------------ * CMessageBox: Buttons draw better - Missing 'else' added. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2075 e54a6e83-5905-42d5-8d5c-058d10e6a962 ------------------ This commit was generated by Migit --- src/gui/widget/messagebox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/messagebox.cpp b/src/gui/widget/messagebox.cpp index 8670fda04..9e8bddfbf 100644 --- a/src/gui/widget/messagebox.cpp +++ b/src/gui/widget/messagebox.cpp @@ -131,7 +131,7 @@ void CMessageBox::paintButtons() int xpos = (m_width - bb_width) / 2; if (mbBtnAlign == CMessageBox::mbBtnAlignCenter1) xpos = ButtonDistance; - if (mbBtnAlign == CMessageBox::mbBtnAlignCenter2) + else if (mbBtnAlign == CMessageBox::mbBtnAlignCenter2) xpos = (m_width - bb_width) / 2; else if (mbBtnAlign == CMessageBox::mbBtnAlignLeft) xpos = ButtonSpacing;