Fix build error due to missing optional::value_or()
This commit is contained in:
parent
6cc1f66dfd
commit
f5c561e281
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue