updated to the new Pikotools API
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1071 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008-2014, Tomasz Sowa
|
||||
* Copyright (c) 2008-2018, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -267,14 +267,14 @@ void ticket_print_value(Info & i, TicketValue & value)
|
||||
if( !value.is_param || !value.is_value )
|
||||
return;
|
||||
|
||||
std::wstring & type = value.config_par->Text(L"type");
|
||||
std::wstring * type = value.config_par->GetFirstValue(L"type");
|
||||
|
||||
if( value.is_in_ticket_par )
|
||||
{
|
||||
if( type == L"decimal" )
|
||||
if( type && *type == L"decimal" )
|
||||
i.out << value.ticket_par->decv;
|
||||
else
|
||||
if( type == L"select" )
|
||||
if( type && *type == L"select" )
|
||||
ticket_print_value_select(i, value);
|
||||
else
|
||||
i.out << value.ticket_par->intv;
|
||||
@@ -751,8 +751,10 @@ void tickets_tab_conf_tab_param_name(Info & i)
|
||||
|
||||
if( value.is_param )
|
||||
{
|
||||
std::wstring & name = value.config_par->Text(L"name");
|
||||
i.out << name;
|
||||
std::wstring * name = value.config_par->GetFirstValue(L"name");
|
||||
|
||||
if( name )
|
||||
i.out << *name;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user