]> granicus.if.org Git - graphviz/commitdiff
Revert "I think this fixed something wrong with scale."
authorStephen C North <scnorth@gmail.com>
Thu, 17 Oct 2019 17:52:36 +0000 (13:52 -0400)
committerStephen C North <scnorth@gmail.com>
Thu, 17 Oct 2019 17:52:36 +0000 (13:52 -0400)
This reverts commit dbe54f9fe3c7eff44d3a4effcf3336c5d16341c2.

This undoes a commit that changed scale to 1/scale, which now looks
totally stupid, but there was a reason, so the stupidity may have
been at a deeper level. Wish we had a better comment about that.

plugin/core/gvrender_core_svg.c

index fbd0defee1adf504e3be6308340817d6e47c7824..a24b5336528177c25461fdbe85d2d7424cc570fc 100644 (file)
@@ -253,9 +253,9 @@ static void svg_begin_page(GVJ_t * job)
      * and it is the entire graph if we're not currently paging */
     svg_print_id_class(job, obj->id, NULL, "graph", obj->u.g);
     gvputs(job, " transform=\"scale(");
-    gvprintdouble(job, 1.0/job->scale.x);
+    gvprintdouble(job, job->scale.x);
     gvputs(job, " ");
-    gvprintdouble(job, 1.0/job->scale.y);
+    gvprintdouble(job, job->scale.y);
     gvprintf(job, ") rotate(%d) translate(", -job->rotation);
     gvprintdouble(job, job->translation.x);
     gvputs(job, " ");