summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/dlgoption_subcolumns.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-19 20:08:21 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-19 20:08:21 +0000
commite12cc9f9eb3fcd0e3a0de3de82527a7d9cbc9cc1 (patch)
treebb15ed1aae45e3f92841d98ffa3229c2fbac9914 /plugins/HistoryStats/src/dlgoption_subcolumns.cpp
parent524aabc23effc3b60cf5b5c891bf66ceb6954ef7 (diff)
- fixes #820 (Crash because HistoryStats);
- code cleaning; - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@11535 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src/dlgoption_subcolumns.cpp')
-rw-r--r--plugins/HistoryStats/src/dlgoption_subcolumns.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/HistoryStats/src/dlgoption_subcolumns.cpp b/plugins/HistoryStats/src/dlgoption_subcolumns.cpp
index a11e1e0f52..aef8ca4771 100644
--- a/plugins/HistoryStats/src/dlgoption_subcolumns.cpp
+++ b/plugins/HistoryStats/src/dlgoption_subcolumns.cpp
@@ -23,8 +23,8 @@ INT_PTR CALLBACK DlgOption::SubColumns::staticAddProc(HWND hDlg, UINT msg, WPARA
upto_each_(i, Column::countColInfo())
{
- int nIndex = SendMessage(hWndList, LB_ADDSTRING, 0, reinterpret_cast<LPARAM>(Column::getColInfo(i).m_Title));
- SendMessage(hWndList, LB_SETITEMDATA, nIndex, static_cast<LPARAM>(i));
+ int nIndex = SendMessage(hWndList, LB_ADDSTRING, 0, reinterpret_cast<LPARAM>(TranslateTS(Column::getColInfo(i).m_Title)));
+ SendMessage(hWndList, LB_SETITEMDATA, nIndex, i);
}
if (Column::countColInfo() > 0) {
@@ -332,7 +332,7 @@ void DlgOption::SubColumns::addCol(int nCol)
getParent()->getLocalSettings().addCol(pCol);
- OptionsCtrl::Check hColCheck = m_Columns.insertCheck(NULL, pCol->getTitle(), 0, reinterpret_cast<INT_PTR>(pCol));
+ OptionsCtrl::Check hColCheck = m_Columns.insertCheck(NULL, TranslateTS(pCol->getTitle()), 0, reinterpret_cast<INT_PTR>(pCol));
m_Columns.checkItem(hColCheck, pCol->isEnabled());
@@ -546,7 +546,7 @@ void DlgOption::SubColumns::onBandDropDown(HANDLE hButton, INT_PTR dwData)
upto_each_(i, Column::countColInfo())
{
- AppendMenu(hPopup, MF_STRING, i + 1, Column::getColInfo(i).m_Title);
+ AppendMenu(hPopup, MF_STRING, i + 1, TranslateTS(Column::getColInfo(i).m_Title));
}
int nCol = -1 + TrackPopupMenu(
@@ -679,7 +679,7 @@ bool DlgOption::SubColumns::configHasConflicts(HelpVec* pHelp)
if (pHelp) {
pHelp->push_back(HelpPair());
- pHelp->back().first = pCol->getTitle();
+ pHelp->back().first = TranslateTS(pCol->getTitle());
pHelp->back().first += _T(": ");
pHelp->back().first += TranslateT("HTML output unsupported.");
@@ -699,7 +699,7 @@ bool DlgOption::SubColumns::configHasConflicts(HelpVec* pHelp)
if (pHelp) {
pHelp->push_back(HelpPair());
- pHelp->back().first = pCol->getTitle();
+ pHelp->back().first = TranslateTS(pCol->getTitle());
pHelp->back().first += _T(": ");
if (nPNGMode == Settings::pmHTMLFallBack)