~kaspar-emanuel/kicad/python-unittest

« back to all changes in this revision

Viewing changes to eeschema/onrightclick.cpp

  • Committer: kaspar
  • Date: 2013-08-15 20:11:34 UTC
  • mfrom: (4242.1.44 kicad)
  • Revision ID: kaspar.emanuel@gmail.com-20130815201134-77ig0ylk3qfohjsb
mergingĀ lp:kicad

Show diffs side-by-side

added added

removed removed

Lines of Context:
663
663
void AddMenusForWire( wxMenu* PopMenu, SCH_LINE* Wire, SCH_EDIT_FRAME* frame )
664
664
{
665
665
    SCH_SCREEN* screen = frame->GetScreen();
666
 
    wxPoint  pos    = screen->GetCrossHairPosition();
667
 
    wxString msg;
 
666
    wxPoint     pos    = frame->GetCrossHairPosition();
 
667
    wxString    msg;
668
668
 
669
669
    if( Wire == NULL )
670
670
    {
691
691
    AddMenuItem( PopMenu, ID_POPUP_SCH_DELETE_CONNECTION, _( "Delete Connection" ),
692
692
                 KiBitmap( delete_connection_xpm ) );
693
693
 
694
 
    SCH_LINE* line = screen->GetWireOrBus( screen->GetCrossHairPosition() );
 
694
    SCH_LINE* line = screen->GetWireOrBus( frame->GetCrossHairPosition() );
695
695
 
696
 
    if( line && !line->IsEndPoint( screen->GetCrossHairPosition() ) )
 
696
    if( line && !line->IsEndPoint( frame->GetCrossHairPosition() ) )
697
697
        AddMenuItem( PopMenu, ID_POPUP_SCH_BREAK_WIRE, _( "Break Wire" ),
698
698
                     KiBitmap( break_line_xpm ) );
699
699
 
713
713
 
714
714
void AddMenusForBus( wxMenu* PopMenu, SCH_LINE* Bus, SCH_EDIT_FRAME* frame )
715
715
{
716
 
    wxPoint pos    = frame->GetScreen()->GetCrossHairPosition();
717
 
    wxString msg;
 
716
    wxPoint     pos = frame->GetCrossHairPosition();
 
717
    wxString    msg;
718
718
 
719
719
    if( Bus == NULL )
720
720
    {