From b3d872ee6597ec2d70563f1419668383f5cf6475 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 17 Sep 2004 16:48:38 +0000 Subject: [PATCH] SetCtlColors /BRANDING wasn't working right, if just one of the background or text color were specified git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3656 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/script.cpp b/Source/script.cpp index 64144a4d..53acf166 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -3791,13 +3791,13 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) { c.flags|=CC_BK|CC_BKB; c.lbStyle=BS_NULL; - if (!*line.gettoken_str(a)) + if (!*line.gettoken_str(a+1)) { c.bkc=COLOR_BTNFACE; c.flags|=CC_BK_SYS; } c.flags|=CC_TEXT; - if (!*line.gettoken_str(a+1)) + if (!*line.gettoken_str(a)) { c.text=COLOR_BTNFACE; c.flags|=CC_TEXT_SYS;