Fix compile error due to enum changes

Merge request !23 changed to strongly typed enums,
so we now need to explicitly cast the output in the
Python getters.
This commit is contained in:
Ian McInerney 2019-12-20 14:47:41 +00:00
parent 11ff16be4e
commit 7fb56cf9a3
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ void UpdateUserInterface()
int GetUserUnits()
{
if( s_PcbEditFrame )
return s_PcbEditFrame->GetUserUnits();
return static_cast<int>( s_PcbEditFrame->GetUserUnits() );
return -1;
}