diff --git a/src/simulation/Sign.cpp b/src/simulation/Sign.cpp index 624aa4921..7e5805fba 100644 --- a/src/simulation/Sign.cpp +++ b/src/simulation/Sign.cpp @@ -116,11 +116,11 @@ String sign::getText(Simulation *sim) } 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") { - 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") {