diff --git a/trunk/ConsoleDataMigration/sources/common/LogConsole.cpp b/trunk/ConsoleDataMigration/sources/common/LogConsole.cpp index b77d6d0..0af3ee8 100644 --- a/trunk/ConsoleDataMigration/sources/common/LogConsole.cpp +++ b/trunk/ConsoleDataMigration/sources/common/LogConsole.cpp @@ -74,8 +74,9 @@ void LogConsole::AddText(const char* fmt, ::std::va_list arg) AddWrapedText(str.substr(addedText, m_Width).c_str()); m_LineNum++; + // 画面領域の末尾を描画中 かつ // 画面領域以上追加したら末尾にスクロールする - if(m_LineNum > m_Height) + if(m_CurrentViewLine == (m_LineNum - m_Height - 1) && m_LineNum > m_Height) { ScrollToEnd(); }