From 2a9c3fd150636aa014bcd2acfc24050d0e67e3a5 Mon Sep 17 00:00:00 2001 From: Christian Schuett Date: Mon, 15 Jul 2013 23:16:44 +0200 Subject: [PATCH] menue.cpp: fix macro usage of SUB_HEAD Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/770240845693fcaa14db88762200a9d40e411c8c Author: Christian Schuett Date: 2013-07-15 (Mon, 15 Jul 2013) Origin message was: ------------------ - menue.cpp: fix macro usage of SUB_HEAD ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 63d7d987b..7b67cabbb 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -1842,7 +1842,7 @@ int CMenuSeparator::paint(bool selected) /* if no alignment is specified, align centered */ if (type & ALIGN_LEFT) - name_start_x = x + (!SUB_HEAD ? name_start_x : 20 + 24 /*std icon_width is 24px - this should be determinated from NEUTRINO_ICON_BUTTON_HOME or so*/); + name_start_x = x + (!(type & SUB_HEAD) ? name_start_x : 20 + 24 /*std icon_width is 24px - this should be determinated from NEUTRINO_ICON_BUTTON_HOME or so*/); else if (type & ALIGN_RIGHT) name_start_x = x + dx - stringwidth - 20; else /* ALIGN_CENTER */