diff --git a/common/preview_items/polygon_geom_manager.cpp b/common/preview_items/polygon_geom_manager.cpp index ea49a61e35..bbadf73f7b 100644 --- a/common/preview_items/polygon_geom_manager.cpp +++ b/common/preview_items/polygon_geom_manager.cpp @@ -154,7 +154,7 @@ void POLYGON_GEOM_MANAGER::updateLeaderPoints( const VECTOR2I& aEndPoint, LEADER const VECTOR2I line_vec( aEndPoint - last_pt ); // get a restricted 45/H/V line from the last fixed point to the cursor auto new_end = last_pt + GetVectorSnapped45( line_vec ); - OPT_VECTOR2I pt = NULLOPT; + OPT_VECTOR2I pt = boost::make_optional( false, VECTOR2I() ); if( m_lockedPoints.SegmentCount() > 1 ) {