Fix selection of table cells in groups.

(Selecting a cell should select the whole group.)
This commit is contained in:
Jeff Young 2025-04-25 22:15:10 +01:00
parent 99b0a3e656
commit aa5863cb40
3 changed files with 12 additions and 1 deletions

View File

@ -50,6 +50,11 @@ public:
return new SCH_TABLECELL( *this );
}
EDA_GROUP* GetParentGroup() const override
{
return GetParent()->GetParentGroup();
}
int GetRow() const;
int GetColumn() const;

View File

@ -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 ) {}

View File

@ -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;