Commit c65b1a87 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*added additional check to protect against null groupcanvas pointers

parent 5eeb17a5
......@@ -846,13 +846,14 @@ int scalar_doclick(t_word *data, t_template *template, t_scalar *sc,
if (xloc != 0.0 || yloc != 0.0)
{
//fprintf(stderr,"ignoring\n");
basex = 0.0;
basey = 0.0;
//basex = 0.0;
//basey = 0.0;
}
hit = scalar_groupclick(templatecanvas, data, template, sc, ap,
owner, xloc, yloc, xpix, ypix,
shift, alt, dbl, doit, basex, basey);
if (templatecanvas)
hit = scalar_groupclick(templatecanvas, data, template, sc, ap,
owner, xloc, yloc, xpix, ypix,
shift, alt, dbl, doit, basex, basey);
return hit;
}
......
Supports Markdown
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