tpt++/mniip: fix line / rectangle snapping