fix loading note level
This commit is contained in:
parent
52a220b89a
commit
53cbe2c696
2 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue