svnno****@sourc*****
svnno****@sourc*****
2015年 1月 15日 (木) 07:32:33 JST
Revision: 5762 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5762 Author: maya Date: 2015-01-15 07:32:31 +0900 (Thu, 15 Jan 2015) Log Message: ----------- ログローテートのサイズ設定がダイアログに正しく表示されない問題を修正 http://sourceforge.jp/projects/ttssh2/forums/5840/36372/75242/ Modified Paths: -------------- trunk/teraterm/teraterm/addsetting.cpp -------------- next part -------------- Modified: trunk/teraterm/teraterm/addsetting.cpp =================================================================== --- trunk/teraterm/teraterm/addsetting.cpp 2015-01-09 08:01:17 UTC (rev 5761) +++ trunk/teraterm/teraterm/addsetting.cpp 2015-01-14 22:32:31 UTC (rev 5762) @@ -1260,7 +1260,7 @@ char uimsg[MAX_UIMSG]; CButton *btn; CComboBox *combo; - int i; + int i, TmpLogRotateSize; CPropertyPage::OnInitDialog(); @@ -1367,7 +1367,10 @@ combo->AddString(LogRotateSizeType[i]); } - SetDlgItemInt(IDC_ROTATE_SIZE, ts.LogRotateSize, FALSE); + TmpLogRotateSize = ts.LogRotateSize; + for (i = 0 ; i < ts.LogRotateSizeType ; i++) + TmpLogRotateSize /= 1024; + SetDlgItemInt(IDC_ROTATE_SIZE, TmpLogRotateSize, FALSE); combo->SelectString(-1, GetLogRotateSizeType(ts.LogRotateSizeType)); SetDlgItemInt(IDC_ROTATE_STEP, ts.LogRotateStep, FALSE); if (ts.LogRotate == ROTATE_NONE) {