~kaspar-emanuel/kicad/python-unittest

« back to all changes in this revision

Viewing changes to eeschema/edit_bitmap.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:
93
93
    }
94
94
 
95
95
    // Draw the bitmap at it's new position.
96
 
    image->SetPosition( screen->GetCrossHairPosition() );
 
96
    image->SetPosition( aPanel->GetParent()->GetCrossHairPosition() );
97
97
    image->Draw( aPanel, aDC, wxPoint( 0, 0 ), GR_DEFAULT_DRAWMODE );
98
98
}
99
99
 
116
116
        return NULL;
117
117
    }
118
118
 
119
 
    wxPoint     pos = GetScreen()->GetCrossHairPosition();
 
119
    wxPoint     pos = GetCrossHairPosition();
120
120
 
121
121
    SCH_BITMAP* image = new SCH_BITMAP( pos );
122
122
 
144
144
 
145
145
    m_canvas->SetMouseCapture( moveBitmap, abortMoveBitmap );
146
146
    GetScreen()->SetCurItem( aImageItem );
147
 
    m_itemToRepeat = NULL;
 
147
    SetRepeatItem( NULL );
148
148
 
149
149
    SetUndoItem( aImageItem );
150
150
 
151
151
    m_canvas->CrossHairOff( aDC );
152
 
    GetScreen()->SetCrossHairPosition( aImageItem->GetPosition() );
 
152
    SetCrossHairPosition( aImageItem->GetPosition() );
153
153
    m_canvas->MoveCursorToCrossHair();
154
154
    m_canvas->CrossHairOn( aDC );
155
155