diff options
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/sim_text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/sim_text.c b/src/sim/sim_text.c index afc7cde..05789b1 100644 --- a/src/sim/sim_text.c +++ b/src/sim/sim_text.c @@ -386,7 +386,7 @@ void cdtextSIM(cdCtxCanvas* ctxcanvas, int x, int y, const char* s, int len) y = _cdInvertYAxis(canvas, y); /* y is already inverted, invert back to cartesian space */ /* move the reference point to the baseline-left */ - simGetPenPos(simulation->canvas, x, y, s, strlen(s), &matrix, &pen); + simGetPenPos(simulation->canvas, x, y, s, len, &matrix, &pen); while(i<len) { |