Index: trunk/src_plugins/gui/camv_gui.c =================================================================== --- trunk/src_plugins/gui/camv_gui.c (revision 767) +++ trunk/src_plugins/gui/camv_gui.c (revision 768) @@ -251,6 +251,7 @@ const char camv_acth_SwapSides[] = "Swaps the side of the board you're looking at."; fgw_error_t camv_act_SwapSides(fgw_arg_t *res, int argc, fgw_arg_t *argv) { + camv_design_t *camv = (camv_design_t *)RND_ACT_DESIGN; rnd_box_t vb; rnd_coord_t x, y; double xcent, ycent, xoffs, yoffs; @@ -259,8 +260,8 @@ rnd_hid_get_coords("Click to center of flip", &x, &y, 0); - x = camv.crosshair_x; - y = camv.crosshair_y; + x = camv->crosshair_x; + y = camv->crosshair_y; rnd_gui->view_get(rnd_gui, &vb); xcent = (double)(vb.X1 + vb.X2)/2.0; @@ -306,6 +307,7 @@ switch (b[0]) { case 'S': case 's': + camv_data_reverse_layers(camv, 0); break; } }