From 5c3f9f97c31b113474a1ca2437eb393362bc3183 Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 4 Sep 2002 18:27:12 +0000 Subject: [PATCH] Better RTL, not perfect yet git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@918 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/DialogTemplate.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/DialogTemplate.cpp b/Source/DialogTemplate.cpp index 1e30685f..058e72dd 100644 --- a/Source/DialogTemplate.cpp +++ b/Source/DialogTemplate.cpp @@ -395,13 +395,18 @@ void CDialogTemplate::ConvertToRTL() { } // Static else if (int(m_vItems[i]->szClass) == 0x82) { - if (m_vItems[i]->dwStyle & (SS_LEFT|SS_LEFTNOWORDWRAP)) addExStyle = true; + if (!(m_vItems[i]->dwStyle & (SS_CENTER|SS_RIGHT))) { + m_vItems[i]->dwStyle &= ~SS_LEFT; + m_vItems[i]->dwStyle &= ~SS_LEFTNOWORDWRAP; + m_vItems[i]->dwStyle |= SS_RIGHT; + } } else addExStyle = true; if (addExStyle) m_vItems[i]->dwExtStyle |= WS_EX_RIGHT; m_vItems[i]->sX = m_sWidth - m_vItems[i]->sWidth - m_vItems[i]->sX; } + m_dwExtStyle |= WS_EX_RIGHT; } // Saves the dialog in the form of DLGTEMPLATE[EX]