OpenToonz - An open-source full-featured 2D animation creation software
C
fix loading note level
shun_iwasawa53cbe2c696dc
diff --git a/toonz/sources/toonz/levelcreatepopup.cpp b/toonz/sources/toonz/levelcreatepopup.cppindex 3cc83d5eb..ab245de44 100644--- a/toonz/sources/toonz/levelcreatepopup.cpp+++ b/toonz/sources/toonz/levelcreatepopup.cpp@@ -436,7 +436,8 @@ bool LevelCreatePopup::apply() {bool validColumn = true;if (xsh->getColumn(col))- validColumn = xsh->getColumn(col)->getColumnType() == 0;+ validColumn =+ xsh->getColumn(col)->getColumnType() == TXshColumn::eLevelType;int from = (int)m_fromFld->getValue();int to = (int)m_toFld->getValue();diff --git a/toonz/sources/toonzlib/txshsoundtextlevel.cpp b/toonz/sources/toonzlib/txshsoundtextlevel.cppindex 8f213f5ab..1e2998883 100644--- a/toonz/sources/toonzlib/txshsoundtextlevel.cpp+++ b/toonz/sources/toonzlib/txshsoundtextlevel.cpp@@ -56,9 +56,9 @@ void TXshSoundTextLevel::loadData(TIStream &is) {if (v == "textSound") type = SND_TXT_XSHLEVEL;is.matchEndTag();} else if (tagName == "frame") {- QString text;+ std::wstring text;is >> text;- m_framesText.push_back(text);+ m_framesText.push_back(QString::fromStdWString(text));is.matchEndTag();} elsethrow TException("unexpected tag " + tagName);