Changed optional::value_or() to optional::get_value_or()
get_value_or() is considered deprecated, but still works in the newest boost (1.63). On the other hand, value_or() is not available in some versions that are still used by major distros.
This commit is contained in:
parent
e34b73e187
commit
adba96fd2b
|
@ -682,7 +682,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.get_value_or( VECTOR2D( 0, 0 ) ) );
|
||||
}
|
||||
|
||||
m_origCursor = boost::none;
|
||||
|
|
Loading…
Reference in New Issue