Pad properties are back.

This commit is contained in:
Maciej Suminski 2014-05-13 11:22:51 +02:00
parent 929008c6c3
commit a0801e2d8e
2 changed files with 3 additions and 2 deletions

View File

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

View File

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