mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 00:21:25 +00:00
Fix compil issues
This commit is contained in:
parent
07f96b83b7
commit
a1cf21f100
@ -233,13 +233,13 @@ void PANEL_SETUP_BUSES::OnAddMember( wxCommandEvent& aEvent )
|
||||
m_membersGrid->SetGridCursor( row, 0 );
|
||||
|
||||
/*
|
||||
* Check if the clipboard contains text data.
|
||||
*
|
||||
* - If `clipboardHasText` is true, select the specified row in the members grid to allow our custom
|
||||
* Check if the clipboard contains text data.
|
||||
*
|
||||
* - If `clipboardHasText` is true, select the specified row in the members grid to allow our custom
|
||||
* conext menu to paste the clipbaord .
|
||||
* - Otherwise, enable and display the cell edit control, allowing the user to manually edit the cell.
|
||||
*/
|
||||
bool clipboardHasText = false;
|
||||
bool clipboardHasText = false;
|
||||
|
||||
if( wxTheClipboard->Open() )
|
||||
{
|
||||
@ -515,7 +515,7 @@ void PANEL_SETUP_BUSES::ImportSettingsFrom( const SCHEMATIC& aOtherSchematic )
|
||||
void PANEL_SETUP_BUSES::updateAliasMembers( int aAliasIndex )
|
||||
{
|
||||
if( !m_aliases.empty() && m_membersGrid->GetNumberRows() > 0 && aAliasIndex >= 0
|
||||
&& aAliasIndex < m_aliases.size() )
|
||||
&& aAliasIndex < (int)m_aliases.size() )
|
||||
{
|
||||
const std::shared_ptr<BUS_ALIAS>& alias = m_aliases[aAliasIndex];
|
||||
|
||||
|
@ -81,21 +81,22 @@ public:
|
||||
return wxEmptyString;
|
||||
}
|
||||
|
||||
bool CanGetValueAs( int aRow, int aCol, const wxString& aTypeName ) override
|
||||
bool CanGetValueAs( int aRow, int aCol, const wxString& aTypeName ) override
|
||||
{
|
||||
if( aRow < (int) size() )
|
||||
{
|
||||
LIB_TABLE_ROW* r = at( (size_t) aRow );
|
||||
|
||||
switch( aCol )
|
||||
{
|
||||
case COL_ENABLED:
|
||||
case COL_VISIBLE:
|
||||
case COL_VISIBLE:
|
||||
return aTypeName == wxGRID_VALUE_BOOL;
|
||||
default:
|
||||
|
||||
default:
|
||||
return aTypeName == wxGRID_VALUE_STRING;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool GetValueAsBool( int aRow, int aCol ) override
|
||||
|
Loading…
Reference in New Issue
Block a user