Commit e7445d1f authored by Claes Sjofors's avatar Claes Sjofors

Glow text length after translation bugfix

parent 9c928b59
......@@ -359,8 +359,10 @@ void GrowText::open( ifstream& fp)
// Translate the text to current language
if ( ctx->translate_on &&
ctx->event_callback[glow_eEvent_Translate]) {
if ( ctx->translate_cb( this, text, &new_text))
strcpy( text, new_text);
if ( ctx->translate_cb( this, text, &new_text)) {
strncpy( text, new_text, sizeof(text));
text[sizeof(text)-1] = 0;
}
get_node_borders();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment