]> granicus.if.org Git - graphviz/commitdiff
fix for bug#948
authorellson <devnull@localhost>
Thu, 25 May 2006 02:37:30 +0000 (02:37 +0000)
committerellson <devnull@localhost>
Thu, 25 May 2006 02:37:30 +0000 (02:37 +0000)
lib/common/emit.c
lib/common/input.c

index 1e1104a38de51e4ffb12f6e858f17ace59a287ba..83277ac4093951be7ad7a0ffd4a16de5689bb71b 100644 (file)
@@ -434,6 +434,10 @@ fprintf(stderr,"clip = %g,%g %g,%g pageBox = %g,%g %g,%g\n",
        job->clip.UR.x, job->clip.UR.y,
        job->pageBox.LL.x, job->pageBox.LL.y,
        job->pageBox.UR.x, job->pageBox.UR.y);
+
+fprintf(stderr,"zoom = %g  dpi = %g,%g\n",
+       job->zoom,
+       job->dpi.x, job->dpi.y);
 #endif
 
     gvrender_begin_page(job);
index ba38895269a6e6dd74ece5a193ab03ea1d7fedcd..8d35d789c8d2da24719aac8fbb229e447d1af91e 100644 (file)
@@ -562,8 +562,6 @@ void graph_init(graph_t * g, bool use_rankdir)
        || ((p = agget(g, "resolution")) && p[0]))
        GD_drawing(g)->dpi = atof(p);
 
-    /* The following functions relies on dpi being set */
-    if (GD_drawing(g)->dpi < 1.0) GD_drawing(g)->dpi = DEFAULT_DPI;
     do_graph_label(g);
 
     Initial_dist = MYHUGE;