mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix selection of table cells in groups.
(Selecting a cell should select the whole group.)
This commit is contained in:
parent
99b0a3e656
commit
aa5863cb40
@ -50,6 +50,11 @@ public:
|
||||
return new SCH_TABLECELL( *this );
|
||||
}
|
||||
|
||||
EDA_GROUP* GetParentGroup() const override
|
||||
{
|
||||
return GetParent()->GetParentGroup();
|
||||
}
|
||||
|
||||
int GetRow() const;
|
||||
int GetColumn() const;
|
||||
|
||||
|
@ -111,7 +111,7 @@ public:
|
||||
virtual void SetParent( EDA_ITEM* aParent ) { m_parent = aParent; }
|
||||
|
||||
virtual void SetParentGroup( EDA_GROUP* aGroup ) { m_group = aGroup; }
|
||||
EDA_GROUP* GetParentGroup() const { return m_group; }
|
||||
virtual EDA_GROUP* GetParentGroup() const { return m_group; }
|
||||
|
||||
virtual bool IsLocked() const { return false; }
|
||||
virtual void SetLocked( bool aLocked ) {}
|
||||
|
@ -26,6 +26,7 @@
|
||||
|
||||
|
||||
#include <pcb_textbox.h>
|
||||
#include <board_item_container.h>
|
||||
|
||||
|
||||
class PCB_TABLECELL : public PCB_TEXTBOX
|
||||
@ -53,6 +54,11 @@ public:
|
||||
return new PCB_TABLECELL( *this );
|
||||
}
|
||||
|
||||
EDA_GROUP* GetParentGroup() const override
|
||||
{
|
||||
return GetParent()->GetParentGroup();
|
||||
}
|
||||
|
||||
int GetRow() const;
|
||||
int GetColumn() const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user