Index: svg.c =================================================================== --- svg.c (revision 24882) +++ svg.c (revision 24883) @@ -187,7 +187,7 @@ #define TRY(y) \ do { \ if (flip) \ - y = PCB->MaxHeight - y; \ + y = PCB->hidlib.size_y - y; \ } while(0) @@ -214,8 +214,8 @@ ctx.view.X1 = 0; ctx.view.Y1 = 0; - ctx.view.X2 = PCB->MaxWidth; - ctx.view.Y2 = PCB->MaxHeight; + ctx.view.X2 = PCB->hidlib.size_x; + ctx.view.Y2 = PCB->hidlib.size_y; f = the_file; @@ -243,7 +243,7 @@ if (photo_mode) { pcb_fprintf(f, "\n", - 0, 0, PCB->MaxWidth, PCB->MaxHeight, board_color); + 0, 0, PCB->hidlib.size_x, PCB->hidlib.size_y, board_color); } opacity = options[HA_opacity].int_value; @@ -286,8 +286,8 @@ pcb_coord_t w, h, x1, y1, x2, y2; fprintf(f, "\n"); - w = PCB->MaxWidth; - h = PCB->MaxHeight; + w = PCB->hidlib.size_x; + h = PCB->hidlib.size_y; while((w < PCB_MM_TO_COORD(1024)) && (h < PCB_MM_TO_COORD(1024))) { w *= 2; h *= 2; @@ -295,8 +295,8 @@ x1 = PCB_MM_TO_COORD(2); y1 = PCB_MM_TO_COORD(2); - x2 = PCB->MaxWidth; - y2 = PCB->MaxHeight; + x2 = PCB->hidlib.size_x; + y2 = PCB->hidlib.size_y; x2 += PCB_MM_TO_COORD(5); y2 += PCB_MM_TO_COORD(5); pcb_fprintf(f, "\n", w, h, x1, y1, x2, y2); @@ -481,7 +481,7 @@ pcb_append_printf(&snormal, "\n"); pcb_append_printf(&snormal, "\n"); pcb_append_printf(&snormal, "\n", comp_cnt); - pcb_append_printf(&sclip, "\n", comp_cnt, PCB->MaxWidth, PCB->MaxHeight); + pcb_append_printf(&sclip, "\n", comp_cnt, PCB->hidlib.size_x, PCB->hidlib.size_y); break; case PCB_HID_COMP_POSITIVE: