Loading eeschema/hotkeys.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -673,7 +673,12 @@ void SCH_EDIT_FRAME::OnHotKey( wxDC* DC, int hotkey, EDA_ITEM* DrawStruct ) if( DrawStruct == NULL ) { // Find the schematic object to move under the cursor // For a drag or copy command, try to find first a component: if( DrawStruct == NULL && HK_Descr->m_Idcommand != HK_MOVE_COMPONENT_OR_ITEM ) DrawStruct = LocateSmallestComponent( GetScreen() ); // If no component, find the schematic object to move/drag or copy under the cursor if( DrawStruct == NULL ) DrawStruct = SchematicGeneralLocateAndDisplay( false ); if( DrawStruct == NULL ) Loading eeschema/lib_field.cpp +0 −2 Original line number Diff line number Diff line Loading @@ -326,8 +326,6 @@ void LIB_FIELD::drawGraphic( WinEDA_DrawPanel* aPanel, wxDC* aDC, const wxPoint& if( aData ) text = *(wxString*)aData; else if( InEditMode() ) text = GetFullText( m_Unit ); else text = m_Text; Loading eeschema/symbdraw.cpp +10 −4 Original line number Diff line number Diff line Loading @@ -242,6 +242,15 @@ static void RedrawWhileMovingCursor( WinEDA_DrawPanel* panel, wxDC* DC, bool era BASE_SCREEN* Screen = panel->GetScreen(); item->SetEraseLastDrawItem( erase ); // if item is the reference field, we must add the current unit id if( item->Type() == LIB_FIELD_T ) { int unit = ((LIB_EDIT_FRAME*)panel->GetParent())->GetUnit(); wxString text = ((LIB_FIELD*)item)->GetFullText( unit ); item->Draw( panel, DC, Screen->GetCursorDrawPosition(), -1, g_XorMode, &text, DefaultTransform ); } else item->Draw( panel, DC, Screen->GetCursorDrawPosition(), -1, g_XorMode, NULL, DefaultTransform ); } Loading @@ -254,9 +263,6 @@ void LIB_EDIT_FRAME::StartMoveDrawSymbol( wxDC* DC ) SetCursor( wxCURSOR_HAND ); if( m_drawItem->GetUnit() != m_unit ) m_drawItem->SetUnit( m_unit ); TempCopyComponent(); m_drawItem->BeginEdit( IS_MOVED, GetScreen()->GetCursorDrawPosition() ); DrawPanel->ManageCurseur = RedrawWhileMovingCursor; Loading Loading
eeschema/hotkeys.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -673,7 +673,12 @@ void SCH_EDIT_FRAME::OnHotKey( wxDC* DC, int hotkey, EDA_ITEM* DrawStruct ) if( DrawStruct == NULL ) { // Find the schematic object to move under the cursor // For a drag or copy command, try to find first a component: if( DrawStruct == NULL && HK_Descr->m_Idcommand != HK_MOVE_COMPONENT_OR_ITEM ) DrawStruct = LocateSmallestComponent( GetScreen() ); // If no component, find the schematic object to move/drag or copy under the cursor if( DrawStruct == NULL ) DrawStruct = SchematicGeneralLocateAndDisplay( false ); if( DrawStruct == NULL ) Loading
eeschema/lib_field.cpp +0 −2 Original line number Diff line number Diff line Loading @@ -326,8 +326,6 @@ void LIB_FIELD::drawGraphic( WinEDA_DrawPanel* aPanel, wxDC* aDC, const wxPoint& if( aData ) text = *(wxString*)aData; else if( InEditMode() ) text = GetFullText( m_Unit ); else text = m_Text; Loading
eeschema/symbdraw.cpp +10 −4 Original line number Diff line number Diff line Loading @@ -242,6 +242,15 @@ static void RedrawWhileMovingCursor( WinEDA_DrawPanel* panel, wxDC* DC, bool era BASE_SCREEN* Screen = panel->GetScreen(); item->SetEraseLastDrawItem( erase ); // if item is the reference field, we must add the current unit id if( item->Type() == LIB_FIELD_T ) { int unit = ((LIB_EDIT_FRAME*)panel->GetParent())->GetUnit(); wxString text = ((LIB_FIELD*)item)->GetFullText( unit ); item->Draw( panel, DC, Screen->GetCursorDrawPosition(), -1, g_XorMode, &text, DefaultTransform ); } else item->Draw( panel, DC, Screen->GetCursorDrawPosition(), -1, g_XorMode, NULL, DefaultTransform ); } Loading @@ -254,9 +263,6 @@ void LIB_EDIT_FRAME::StartMoveDrawSymbol( wxDC* DC ) SetCursor( wxCURSOR_HAND ); if( m_drawItem->GetUnit() != m_unit ) m_drawItem->SetUnit( m_unit ); TempCopyComponent(); m_drawItem->BeginEdit( IS_MOVED, GetScreen()->GetCursorDrawPosition() ); DrawPanel->ManageCurseur = RedrawWhileMovingCursor; Loading