diff --git a/toonz/sources/toonz/levelcreatepopup.cpp b/toonz/sources/toonz/levelcreatepopup.cpp index 3cc83d5e..ab245de4 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.cpp index 8f213f5a..1e299888 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(); } else throw TException("unexpected tag " + tagName);