Index: tool_line.c =================================================================== --- tool_line.c (revision 32971) +++ tool_line.c (revision 32972) @@ -446,7 +446,7 @@ pcb_crosshair.AttachedLine.Point1.X = pcb_crosshair.AttachedLine.Point2.X = ptr2->Point2.X; pcb_crosshair.AttachedLine.Point1.Y = pcb_crosshair.AttachedLine.Point2.Y = ptr2->Point2.Y; } - pcb_crosshair_grid_fit(pcb_crosshair.X, pcb_crosshair.Y); + pcb_crosshair_grid_fit(pcb, pcb_crosshair.X, pcb_crosshair.Y); rnd_tool_adjust_attached(hl); if (--pcb_added_lines == 0) { pcb_crosshair.AttachedLine.State = PCB_CH_STATE_SECOND;