Index: layer_vis.c =================================================================== --- layer_vis.c (revision 29353) +++ layer_vis.c (revision 29354) @@ -118,6 +118,8 @@ done:; /* update control panel and exit */ + if (ChangeStackOrder) + PCB->RatDraw = 0; /* any layer selection here means we can not be in rat mode */ pcb_event(hl, PCB_EVENT_LAYERVIS_CHANGED, NULL); return changed; }