Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Minus sign crash fix

manongjohncd95b04c7e29
diff --git a/toonz/sources/common/tunit/tunit.cpp b/toonz/sources/common/tunit/tunit.cpp
index 90bbf638c..660961981 100644
--- a/toonz/sources/common/tunit/tunit.cpp
+++ b/toonz/sources/common/tunit/tunit.cpp
@@ -457,7 +457,7 @@ void TMeasuredValue::setMeasure(std::string measureName) {
//-------------------------------------------------------------------
bool TMeasuredValue::setValue(std::wstring s, int *pErr) {
- if (s == L"") {
+ if (s == L"" || s == L"-") {
if (pErr) *pErr = -1;
return false;
}