Fix build error due to missing optional::value_or()

This commit is contained in:
Maciej Suminski 2017-11-04 11:29:55 +01:00
parent 6cc1f66dfd
commit f5c561e281
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ void TOOL_MANAGER::dispatchContextMenu( const TOOL_EVENT& aEvent )
if( activeTool == GetCurrentToolId() )
{
m_viewControls->ForceCursorPosition( (bool) m_origCursor,
m_origCursor.value_or( VECTOR2D( 0, 0 ) ) );
m_origCursor ? *m_origCursor : VECTOR2D( 0, 0 ) );
}
m_origCursor = NULLOPT;