OpenToonz - An open-source full-featured 2D animation creation software
C
fix type tool crash (#2222)
shun-iwasawa3563f7ae9f4c
diff --git a/toonz/sources/tnztools/typetool.cpp b/toonz/sources/tnztools/typetool.cppindex 67add75d7..8c985c8ca 100644--- a/toonz/sources/tnztools/typetool.cpp+++ b/toonz/sources/tnztools/typetool.cpp@@ -1616,6 +1616,7 @@ bool TypeTool::keyDown(QKeyEvent *event) {break;default:+ if (unicodeChar.empty()) return false;replaceText(unicodeChar, m_cursorIndex, m_cursorIndex);m_cursorIndex++;m_preeditRange = std::make_pair(m_cursorIndex, m_cursorIndex);