Browse Source

Position interactive: don't allow status popup over the dialog

pcb_db
John Beard 9 months ago
parent
commit
e392b7b52d
  1. 5
      pcbnew/tools/position_relative_tool.cpp

5
pcbnew/tools/position_relative_tool.cpp

@ -299,6 +299,9 @@ int POSITION_RELATIVE_TOOL::PositionRelativeInteractively( const TOOL_EVENT& aEv
// second click or mouse up after drag ends
else if( originSet && ( evt->IsClick( BUT_LEFT ) || evt->IsMouseUp( BUT_LEFT ) ) )
{
// Hide the popup text so it doesn't get in the way
statusPopup.Hide();
// This is the forward vector from the ruler item
const VECTOR2I origVector = twoPtMgr.GetEnd() - twoPtMgr.GetOrigin();
VECTOR2I offsetVector = origVector;
@ -325,6 +328,8 @@ int POSITION_RELATIVE_TOOL::PositionRelativeInteractively( const TOOL_EVENT& aEv
controls.SetAutoPan( false );
controls.CaptureCursor( false );
statusPopup.Popup();
}
// move or drag when origin set updates rules
else if( originSet && ( evt->IsMotion() || evt->IsDrag( BUT_LEFT ) ) )

Loading…
Cancel
Save