mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 09:59:04 +08:00
Fix string conversions in PlaceholderParser
This commit is contained in:
parent
6175eda867
commit
570cc6e167
@ -270,9 +270,9 @@ namespace client
|
||||
{
|
||||
std::string out;
|
||||
switch (type) {
|
||||
case TYPE_BOOL: out = std::to_string(data.b); break;
|
||||
case TYPE_INT: out = std::to_string(data.i); break;
|
||||
case TYPE_DOUBLE: out = std::to_string(data.d); break;
|
||||
case TYPE_BOOL: out = boost::lexical_cast<std::string>(data.b); break;
|
||||
case TYPE_INT: out = boost::lexical_cast<std::string>(data.i); break;
|
||||
case TYPE_DOUBLE: out = boost::lexical_cast<std::string>(data.d); break;
|
||||
case TYPE_STRING: out = *data.s; break;
|
||||
default: break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user