Index: trunk/src/plug_io.c =================================================================== --- trunk/src/plug_io.c (revision 570) +++ trunk/src/plug_io.c (revision 571) @@ -75,8 +75,10 @@ static void post_load(camv_design_t *camv) { camv_data_bbox(camv); - camv->hidlib.size_x = camv->bbox.x2; - camv->hidlib.size_y = camv->bbox.y2; + camv->hidlib.dwg.X1 = camv->bbox.x1; + camv->hidlib.dwg.Y1 = camv->bbox.y1; + camv->hidlib.dwg.X2 = camv->bbox.x2; + camv->hidlib.dwg.Y2 = camv->bbox.y2; } int camv_io_load(camv_design_t *camv, const char *fn) Index: trunk/src_plugins/export_png/export_png.c =================================================================== --- trunk/src_plugins/export_png/export_png.c (revision 570) +++ trunk/src_plugins/export_png/export_png.c (revision 571) @@ -141,10 +141,10 @@ png_f = the_file; - region.X1 = 0; - region.Y1 = 0; - region.X2 = hl->size_x; - region.Y2 = hl->size_y; + region.X1 = hl->dwg.X1; + region.Y1 = hl->dwg.Y1; + region.X2 = hl->dwg.X2; + region.Y2 = hl->dwg.Y2; png_options = options; bounds = ®ion; Index: trunk/src_plugins/export_ps/eps.c =================================================================== --- trunk/src_plugins/export_ps/eps.c (revision 570) +++ trunk/src_plugins/export_ps/eps.c (revision 571) @@ -105,10 +105,10 @@ options_ = options; - region.X1 = 0; - region.Y1 = 0; - region.X2 = hl->size_x; - region.Y2 = hl->size_y; + region.X1 = hl->dwg.X1; + region.Y1 = hl->dwg.Y1; + region.X2 = hl->dwg.X2; + region.Y2 = hl->dwg.Y2; bnds = ®ion; rnd_eps_init(pctx, the_file, *bnds, options_[HA_scale].dbl, options[HA_mono].lng, 0); Index: trunk/src_plugins/export_ps/ps.c =================================================================== --- trunk/src_plugins/export_ps/ps.c (revision 570) +++ trunk/src_plugins/export_ps/ps.c (revision 571) @@ -219,10 +219,10 @@ /* reset static vars */ rnd_ps_use_gc(&global.ps, NULL); - global.exps.view.X1 = 0; - global.exps.view.Y1 = 0; - global.exps.view.X2 = hl->size_x; - global.exps.view.Y2 = hl->size_y; + global.exps.view.X1 = hl->dwg.X1; + global.exps.view.Y1 = hl->dwg.Y1; + global.exps.view.X2 = hl->dwg.X2; + global.exps.view.Y2 = hl->dwg.Y2; /* print ToC */ switch(options[HA_toc].lng) { Index: trunk/src_plugins/export_svg/export_svg.c =================================================================== --- trunk/src_plugins/export_svg/export_svg.c (revision 570) +++ trunk/src_plugins/export_svg/export_svg.c (revision 571) @@ -100,10 +100,10 @@ rnd_hidlib_t *hl = &camv.hidlib; rnd_hid_expose_ctx_t ctx; - ctx.view.X1 = 0; - ctx.view.Y1 = 0; - ctx.view.X2 = hl->size_x; - ctx.view.Y2 = hl->size_y; + ctx.view.X1 = hl->dwg.X1; + ctx.view.Y1 = hl->dwg.Y1; + ctx.view.X2 = hl->dwg.X2; + ctx.view.Y2 = hl->dwg.Y2; pctx->outf = the_file;