Commit ad5a6eb7 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

ported from pd-l2ork git: commit 656478c176a33d6a12854c10fdbb3d94f96738f6

 *added check whether a window is visible before requesting resizing of a text object box (fixes otherwise benign error reports, Nicola Pandini reported)
parent ba6e55b1
......@@ -395,9 +395,9 @@ static void rtext_senditup(t_rtext *x, int action, int *widthp, int *heightp,
// pd_canvas.html. I could remove the conditional, but
// this part of Pd is convoluted enough that I'm not sure
// if there'd be any side effects.
if (pixwide != x->x_drawnwidth ||
if (glist_isvisible(x->x_glist) && (pixwide != x->x_drawnwidth ||
pixhigh != x->x_drawnheight ||
x->x_text->te_type == T_MESSAGE)
x->x_text->te_type == T_MESSAGE))
text_drawborder(x->x_text, x->x_glist, x->x_tag,
pixwide, pixhigh, 0);
if (x->x_active)
......
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