Fix warning due to NONE enum member mixing
This commit is contained in:
parent
1900000371
commit
0054b64143
|
@ -44,8 +44,8 @@
|
||||||
|
|
||||||
|
|
||||||
int DIALOG_LIB_SYMBOL_PROPERTIES::m_lastOpenedPage = 0;
|
int DIALOG_LIB_SYMBOL_PROPERTIES::m_lastOpenedPage = 0;
|
||||||
DIALOG_LIB_SYMBOL_PROPERTIES::LAST_LAYOUT
|
DIALOG_LIB_SYMBOL_PROPERTIES::LAST_LAYOUT DIALOG_LIB_SYMBOL_PROPERTIES::m_lastLayout =
|
||||||
DIALOG_LIB_SYMBOL_PROPERTIES::m_lastLayout = DIALOG_LIB_SYMBOL_PROPERTIES::NONE;
|
DIALOG_LIB_SYMBOL_PROPERTIES::LAST_LAYOUT::NONE;
|
||||||
|
|
||||||
|
|
||||||
DIALOG_LIB_SYMBOL_PROPERTIES::DIALOG_LIB_SYMBOL_PROPERTIES( SYMBOL_EDIT_FRAME* aParent,
|
DIALOG_LIB_SYMBOL_PROPERTIES::DIALOG_LIB_SYMBOL_PROPERTIES( SYMBOL_EDIT_FRAME* aParent,
|
||||||
|
@ -104,17 +104,19 @@ DIALOG_LIB_SYMBOL_PROPERTIES::DIALOG_LIB_SYMBOL_PROPERTIES( SYMBOL_EDIT_FRAME* a
|
||||||
wxGridEventHandler( DIALOG_LIB_SYMBOL_PROPERTIES::OnGridCellChanging ),
|
wxGridEventHandler( DIALOG_LIB_SYMBOL_PROPERTIES::OnGridCellChanging ),
|
||||||
nullptr, this );
|
nullptr, this );
|
||||||
|
|
||||||
if( m_lastLayout != DIALOG_LIB_SYMBOL_PROPERTIES::NONE )
|
if( m_lastLayout != DIALOG_LIB_SYMBOL_PROPERTIES::LAST_LAYOUT::NONE )
|
||||||
{
|
{
|
||||||
if( ( m_lastLayout == DIALOG_LIB_SYMBOL_PROPERTIES::ALIAS && aLibEntry->IsRoot() )
|
if( ( m_lastLayout == DIALOG_LIB_SYMBOL_PROPERTIES::LAST_LAYOUT::ALIAS
|
||||||
|| ( m_lastLayout == DIALOG_LIB_SYMBOL_PROPERTIES::PARENT && aLibEntry->IsAlias() ) )
|
&& aLibEntry->IsRoot() )
|
||||||
|
|| ( m_lastLayout == DIALOG_LIB_SYMBOL_PROPERTIES::LAST_LAYOUT::PARENT
|
||||||
|
&& aLibEntry->IsAlias() ) )
|
||||||
{
|
{
|
||||||
resetSize();
|
resetSize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_lastLayout = ( aLibEntry->IsAlias() ) ? DIALOG_LIB_SYMBOL_PROPERTIES::ALIAS
|
m_lastLayout = ( aLibEntry->IsAlias() ) ? DIALOG_LIB_SYMBOL_PROPERTIES::LAST_LAYOUT::ALIAS
|
||||||
: DIALOG_LIB_SYMBOL_PROPERTIES::PARENT;
|
: DIALOG_LIB_SYMBOL_PROPERTIES::LAST_LAYOUT::PARENT;
|
||||||
|
|
||||||
m_grid->GetParent()->Layout();
|
m_grid->GetParent()->Layout();
|
||||||
syncControlStates( m_libEntry->IsAlias() );
|
syncControlStates( m_libEntry->IsAlias() );
|
||||||
|
|
|
@ -95,7 +95,7 @@ public:
|
||||||
private:
|
private:
|
||||||
static int m_lastOpenedPage; // To remember the last notebook selection
|
static int m_lastOpenedPage; // To remember the last notebook selection
|
||||||
|
|
||||||
enum LAST_LAYOUT {
|
enum class LAST_LAYOUT {
|
||||||
NONE,
|
NONE,
|
||||||
ALIAS,
|
ALIAS,
|
||||||
PARENT
|
PARENT
|
||||||
|
|
Loading…
Reference in New Issue