GRID_HELPER: Measurement snapping points

Measurements should snap to the points that are used for controlling the
measurement.
This commit is contained in:
Seth Hillbrand 2018-10-06 09:29:19 -07:00
parent f2a49c6bd6
commit 776d12c529
1 changed files with 2 additions and 2 deletions

View File

@ -428,8 +428,8 @@ void GRID_HELPER::computeAnchors( BOARD_ITEM* aItem, const VECTOR2I& aRefPos )
case PCB_DIMENSION_T: case PCB_DIMENSION_T:
{ {
const DIMENSION* dim = static_cast<const DIMENSION*>( aItem ); const DIMENSION* dim = static_cast<const DIMENSION*>( aItem );
addAnchor( dim->m_featureLineGF, CORNER | SNAPPABLE, aItem ); addAnchor( dim->m_crossBarF, CORNER | SNAPPABLE, aItem );
addAnchor( dim->m_featureLineDF, CORNER | SNAPPABLE, aItem ); addAnchor( dim->m_crossBarO, CORNER | SNAPPABLE, aItem );
addAnchor( dim->m_featureLineGO, CORNER | SNAPPABLE, aItem ); addAnchor( dim->m_featureLineGO, CORNER | SNAPPABLE, aItem );
addAnchor( dim->m_featureLineDO, CORNER | SNAPPABLE, aItem ); addAnchor( dim->m_featureLineDO, CORNER | SNAPPABLE, aItem );
break; break;