From cd95b04c7e2975210823db08010056f9da9d4001 Mon Sep 17 00:00:00 2001 From: manongjohn Date: Nov 26 2017 08:13:12 +0000 Subject: Minus sign crash fix --- diff --git a/toonz/sources/common/tunit/tunit.cpp b/toonz/sources/common/tunit/tunit.cpp index 90bbf63..6609619 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; }