#include "utils.h"
#include "gvplugin_loadimage.h"
-
+extern char *Gvimagepath;
+extern char *HTTPServerEnVar;
extern shape_desc *find_user_shape(const char *);
static Dict_t *ImageDict;
{
point rv;
pointf dpi;
+ static char* oldpath;
/* no shape file, no shape size */
if (!name || (*name == '\0')) {
return rv;
}
+ if (!HTTPServerEnVar && strcmp(oldpath,Gvimagepath)) {
+ oldpath = Gvimagepath;
+ if (ImageDict) {
+ dtclose(ImageDict);
+ ImageDict = NULL;
+ }
+ }
+
if ((dpi.y = GD_drawing(g)->dpi) >= 1.0)
dpi.x = dpi.y;
else