Commit bd6bb227 authored by claes's avatar claes

Buggfix in 'get_info'

parent b8a1c550
...@@ -516,7 +516,7 @@ void GrowAnnot::get_annotation_info( void *node, int *t_size, glow_eDrawType *t_ ...@@ -516,7 +516,7 @@ void GrowAnnot::get_annotation_info( void *node, int *t_size, glow_eDrawType *t_
double trf_scale = trf.vertical_scale( &((GrowNode *)node)->trf); double trf_scale = trf.vertical_scale( &((GrowNode *)node)->trf);
int idx = int( trf_scale * ctx->zoom_factor_y / ctx->base_zoom_factor * (text_size +4) - 4); int idx = int( trf_scale * ctx->zoom_factor_y / ctx->base_zoom_factor * (text_size +4) - 4);
if ( idx < 0) if ( idx < 0)
return; idx = 0;
idx = min( idx, DRAW_TYPE_SIZE-1); idx = min( idx, DRAW_TYPE_SIZE-1);
*t_color = ((GrowCtx *)ctx)->get_drawtype( color_drawtype, glow_eDrawType_LineHighlight, *t_color = ((GrowCtx *)ctx)->get_drawtype( color_drawtype, glow_eDrawType_LineHighlight,
......
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