summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreengine/complextypes.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/coreengine/complextypes.c b/coreengine/complextypes.c
index a660dca..7c9f77a 100644
--- a/coreengine/complextypes.c
+++ b/coreengine/complextypes.c
@@ -1220,8 +1220,10 @@ char *cTextExpr::DeterminateText(void) {
strcat(retVal, str);
} else if (t->type == eTexttokenType::inttoken) {
int value = tokenContainer->IntToken(t->tokenIndex);
- cString str = cString::sprintf("%d", value);
- strcat(retVal, *str);
+ if (value > 0) {
+ cString str = cString::sprintf("%d", value);
+ strcat(retVal, *str);
+ }
} else if (t->type == eTexttokenType::looptoken && loopInfo && loopInfo->row >= 0) {
char *str = tokenContainer->LoopToken(loopInfo->index, loopInfo->row, t->tokenIndex);
if (str)