]> granicus.if.org Git - graphviz/commitdiff
Accept additional suffixes to identify postscript files
authorerg <devnull@localhost>
Wed, 29 Jun 2005 18:18:59 +0000 (18:18 +0000)
committererg <devnull@localhost>
Wed, 29 Jun 2005 18:18:59 +0000 (18:18 +0000)
lib/common/utils.c

index ae67a9b7ce4e739d3a83f797b50b93b5ef4e45ca..04f65a45223e47b63409647731a9a19f66cd9526 100644 (file)
@@ -1199,7 +1199,8 @@ point user_shape_size(node_t * n, char *shapefile)
        return quartz_user_shape_size(n, shapefile);
     else
 #endif
-    if (!strcasecmp(suffix, "ps")) {
+    if (!strcasecmp(suffix, "ps") || !strncasecmp(suffix, "eps", 3) ||
+       !strcasecmp(suffix, "epi")) {
        rv = ps_user_shape_size(n, shapefile);
     } else if (!strcasecmp(suffix, "svg")) {
        rv = svg_user_shape_size(n, shapefile);