From db3444ca994fb8c0ef9cf52e028a80634a7ae94a Mon Sep 17 00:00:00 2001 From: shun_iwasawa Date: Apr 27 2016 09:37:49 +0000 Subject: fix angle unit (degree sign) expression --- diff --git a/toonz/sources/common/tparam/tdoublekeyframe.cpp b/toonz/sources/common/tparam/tdoublekeyframe.cpp index 249f73e..7b1d707 100644 --- a/toonz/sources/common/tparam/tdoublekeyframe.cpp +++ b/toonz/sources/common/tparam/tdoublekeyframe.cpp @@ -48,6 +48,9 @@ void TDoubleKeyframe::saveData(TOStream &os) const break; } std::string unitName = m_unitName != "" ? m_unitName : "default"; + // Dirty resolution. Because the degree sign is converted to unexpected string... + if (QString::fromStdWString(L"\u00b0").toStdString() == unitName) + unitName = "\\u00b0"; switch (m_type) { case Constant: case Exponential: