directory edit box should not be rtl as it contains mostly english

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4546 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-03-04 13:48:43 +00:00
parent 10257ceb5b
commit 09a13d02ec

View file

@ -534,7 +534,14 @@ int CEXEBuild::GenerateLangTables() {
CDialogTemplate td(dlg,lt[i].nlf.m_uCodePage); \
res_editor->FreeResource(dlg); \
if (font) td.SetFont(font, lt[i].nlf.m_iFontSize); \
if (lt[i].nlf.m_bRTL) td.ConvertToRTL(); \
if (lt[i].nlf.m_bRTL) { \
td.ConvertToRTL(); \
DialogItemTemplate* dir = td.GetItem(IDC_DIR); \
if (id == IDD_DIR && dir) { \
if ((dir->dwStyle & ES_CENTER) == 0) dir->dwStyle ^= ES_RIGHT; \
dir->dwExtStyle &= ~(WS_EX_RTLREADING | WS_EX_LEFTSCROLLBAR); \
} \
} \
DWORD dwSize; \
dlg = td.Save(dwSize); \
res_editor->UpdateResource(RT_DIALOG, MAKEINTRESOURCE(id+cur_offset), NSIS_DEFAULT_LANG, dlg, dwSize); \