Fix getting timeunit outside of module to use a defined check value
This commit is contained in:
parent
3b705d95a6
commit
8bb4777789
6
pform.cc
6
pform.cc
|
|
@ -1096,10 +1096,10 @@ void pform_set_timeunit(const char*txt, bool in_module, bool only_check)
|
||||||
|
|
||||||
int pform_get_timeunit()
|
int pform_get_timeunit()
|
||||||
{
|
{
|
||||||
if (pform_cur_module.front())
|
if (pform_cur_module.empty())
|
||||||
return pform_cur_module.front()->time_unit;
|
|
||||||
else
|
|
||||||
return pform_time_unit;
|
return pform_time_unit;
|
||||||
|
else
|
||||||
|
return pform_cur_module.front()->time_unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
void pform_set_timeprecision(const char*txt, bool in_module, bool only_check)
|
void pform_set_timeprecision(const char*txt, bool in_module, bool only_check)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue