the code to enter the if (ND_shape(n)->usershape) {} block, as the nodes
just use the image attribute. Second, the logic fails to handle the case
of postscript library shapes.
usershape_p = FALSE;
if (ND_shape(n)->usershape) {
name = ND_shape(n)->name;
- if (streq(name, "custom"))
+ if (streq(name, "custom")) {
if ((name = agget(n, "shapefile")) && name[0])
usershape_p = TRUE;
+ } else
+ usershape_p = TRUE;
} else if ((name = agget(n, "image")) && name[0]) {
usershape_p = TRUE;
}