diff --git a/toonz/sources/toonzlib/toonzscene.cpp b/toonz/sources/toonzlib/toonzscene.cpp index f3322b8..b0e43ac 100644 --- a/toonz/sources/toonzlib/toonzscene.cpp +++ b/toonz/sources/toonzlib/toonzscene.cpp @@ -1096,11 +1096,11 @@ TFilePath ToonzScene::getImportedLevelPath(const TFilePath path) const { if (ltype.m_ltype == UNKNOWN_XSHLEVEL) return path; const std::wstring &levelName = path.getWideName(); - const std::string &ext = path.getType(), &dots = path.getDots(); + const std::string &dots = path.getDots(); TFilePath importedLevelPath = getDefaultLevelPath(ltype.m_ltype, levelName).getParentDir() + - (levelName + ::to_wstring(dots + ext)); + path.getLevelNameW(); if (dots == "..") importedLevelPath = importedLevelPath.withFrame(TFrameId::EMPTY_FRAME);