Fix msvc compile error again

This commit is contained in:
Tamás Bálint Misius 2019-04-02 19:53:11 +02:00
parent c8df51a8b3
commit 79c5813ba3
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -116,11 +116,11 @@ String sign::getText(Simulation *sim)
} }
else if (between_curlies == "type") else if (between_curlies == "type")
{ {
formatted_text << (part ? sim->BasicParticleInfo(*part) : (formatted_text.Size() ? "empty" : "Empty")); formatted_text << (part ? sim->BasicParticleInfo(*part) : (formatted_text.Size() ? String::Build("empty") : String::Build("Empty")));
} }
else if (between_curlies == "ctype") else if (between_curlies == "ctype")
{ {
formatted_text << (part ? ((part->ctype && sim->IsValidElement(part->ctype)) ? sim->ElementResolve(part->ctype, -1) : String::Build(part->ctype)) : (formatted_text.Size() ? "empty" : "Empty")); formatted_text << (part ? ((part->ctype && sim->IsValidElement(part->ctype)) ? sim->ElementResolve(part->ctype, -1) : String::Build(part->ctype)) : (formatted_text.Size() ? String::Build("empty") : String::Build("Empty")));
} }
else if (between_curlies == "life") else if (between_curlies == "life")
{ {