]> granicus.if.org Git - graphviz/commitdiff
fix rotation of page area in landscape mode for -Tsvg
authorellson <devnull@localhost>
Tue, 24 Jul 2007 21:53:57 +0000 (21:53 +0000)
committerellson <devnull@localhost>
Tue, 24 Jul 2007 21:53:57 +0000 (21:53 +0000)
plugin/core/gvrender_core_svg.c

index cdd3ef31668995f1cb09e2b91898d50f38a1d902..6ca00729880cc3192a0c9664018155f918866341 100644 (file)
@@ -157,8 +157,8 @@ static void svg_begin_graph(GVJ_t * job)
     core_printf(job, "<svg width=\"%.2fin\" height=\"%.2fin\"\n",
        job->width/job->dpi.x, job->height/job->dpi.y);
     core_printf(job, " viewBox=\"%.2f %.2f %.2f %.2f\"",
-       job->canvasBox.LL.x, job->canvasBox.LL.y,
-       job->canvasBox.UR.x, job->canvasBox.UR.y);
+        job->boundingBox.LL.x, job->boundingBox.LL.y,
+        job->boundingBox.UR.x, job->boundingBox.UR.y);
     /* namespace of svg */
     core_fputs(job, " xmlns=\"http://www.w3.org/2000/svg\"");
     /* namespace of xlink */