Molecular Modeling Software
リビジョン | ce0f4ef02c31ffc77daaa2cc910d9797fd30d975 (tree) |
---|---|
日時 | 2014-03-28 10:26:56 |
作者 | toshinagata1964 <toshinagata1964@a2be...> |
コミッター | toshinagata1964 |
History invocation in Molby Console may crash when nil is the result
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@514 a2be9bc6-48de-4e38-9406-05402d4bc13c
@@ -438,6 +438,8 @@ ConsoleFrame::ShowHistory(bool up, bool option) | ||
438 | 438 | } |
439 | 439 | } |
440 | 440 | } |
441 | + if (p == NULL) | |
442 | + p = ""; | |
441 | 443 | textCtrl->Replace(historyPos, textCtrl->GetLastPosition(), wxT("")); |
442 | 444 | SetConsoleColor(option ? 1 : 3); |
443 | 445 | while (isspace(*p)) |