Pad properties are back.
This commit is contained in:
parent
929008c6c3
commit
a0801e2d8e
|
@ -231,7 +231,7 @@ int EDIT_TOOL::Properties( TOOL_EVENT& aEvent )
|
|||
{
|
||||
for( D_PAD* pad = static_cast<MODULE*>( item )->Pads(); pad; pad = pad->Next() )
|
||||
{
|
||||
if( pad->ViewBBox().Contains( m_cursor ) )
|
||||
if( pad->ViewBBox().Contains( getViewControls()->GetCursorPosition() ) )
|
||||
{
|
||||
// Turns out that user wants to edit a pad properties
|
||||
item = pad;
|
||||
|
|
|
@ -101,7 +101,8 @@ private:
|
|||
///> Offset from the dragged item's center (anchor)
|
||||
wxPoint m_offset;
|
||||
|
||||
///> Last cursor position
|
||||
///> Last cursor position (needed for getModificationPoint() to avoid changes
|
||||
///> of edit reference point).
|
||||
VECTOR2I m_cursor;
|
||||
|
||||
///> Removes and frees a single BOARD_ITEM.
|
||||
|
|
Loading…
Reference in New Issue