Commit 40d6dcfe authored by claes's avatar claes

Negative idx sent to get_text_extent

parent daa37cf3
/*
* Proview $Id: glow_growtext.cpp,v 1.6 2007-05-07 14:35:03 claes Exp $
* Proview $Id: glow_growtext.cpp,v 1.7 2007-08-22 06:43:18 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -679,7 +679,7 @@ void GrowText::draw( GlowWind *w, GlowTransform *t, int highlight, int hot, voi
}
}
else {
ctx->gdraw->get_text_extent( "A", 1, draw_type, idx, font, &z_width, &z_height,
ctx->gdraw->get_text_extent( "A", 1, draw_type, max( 0, idx), font, &z_width, &z_height,
&z_descent);
ctx->gdraw->rect( w, x1, y1 - (z_height-z_descent), z_width, z_height,
glow_eDrawType_LineGray, idx, 0);
......
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