Commit a0801e2d authored by Maciej Suminski's avatar Maciej Suminski

Pad properties are back.

parent 929008c6
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment