The tab size setting in Tools|Options|Editor is not remembered when you close and reopen HAP.
Logged In: YES user_id=732318
The bug is in CUserCfg::LoadUserCfg. See the following lines:
dwSize = sizeof(m_nEditorTabWidth); RegQueryValueEx(hRegKey, REGVAL_TABWIDTH, 0, &dwType, (unsigned char*)&m_nEditorTabWidth, &dwSize);
dwSize = sizeof(m_bUseTabs); RegQueryValueEx(hRegKey, REGVAL_USETABS, 0, &dwType, (unsigned char*)&m_bUseTabs, &dwSize);
In the old code the sizeof calls were swapped. I've rebuilt with this fix and it works fine now.
Log in to post a comment.
Logged In: YES
user_id=732318
The bug is in CUserCfg::LoadUserCfg. See the following lines:
dwSize = sizeof(m_nEditorTabWidth);
RegQueryValueEx(hRegKey, REGVAL_TABWIDTH, 0,
&dwType, (unsigned char*)&m_nEditorTabWidth, &dwSize);
dwSize = sizeof(m_bUseTabs);
RegQueryValueEx(hRegKey, REGVAL_USETABS, 0, &dwType,
(unsigned char*)&m_bUseTabs, &dwSize);
In the old code the sizeof calls were swapped. I've rebuilt
with this fix and it works fine now.