Browse Source

fixed: placefinder tool: input parameters were not correctly set

master
Tomasz Sowa 1 month ago
parent
commit
2025644691
  1. 10
      placefinder/main.cpp

10
placefinder/main.cpp

@ -53,11 +53,17 @@ bool parse_parametr(const pt::Space * input_par, std::wstring & param, const cha
{
if( input_par )
{
if( input_par->table_size() != 1 )
if( input_par->is_table() && input_par->table_size() == 1 )
{
pt::Space * first_item = input_par->value.value_table.back();
if( first_item->is_table() && first_item->table_size() == 1 )
param = first_item->value.value_table.back()->to_wstr();
}
else
{
std::cout << error_msg << std::endl;
return false;
param = input_par->value.value_table.back()->to_wstr();
}
}

Loading…
Cancel
Save