← Back to team overview

kicad-developers team mailing list archive

[PATCH] Refresh eeschema canvas after placing part to avoid graphic debris

 

When you pick up a part and move it in eeschema, the canvas is not 
refreshed after it is placed, leaving behind graphical debris. Here's a 
patch that adds this refresh.

Goes particularly well with my recent patch to hide the pin targets 
after a connection has been made, as it is much more immediately obvious 
now that a part has been connected.

--
Chris

commit 175650781ec7dd5ec51f72bbeb8d6cf8c60677fc
Author: Chris Pavlina <cpavlin1@xxxxxxxxxxxxxx>
Date:   Sun Jun 7 15:18:27 2015 -0400

    Refresh canvas after placing part to avoid graphic debris

diff --git a/eeschema/schframe.cpp b/eeschema/schframe.cpp
index a9c3290..b27cab0 100644
--- a/eeschema/schframe.cpp
+++ b/eeschema/schframe.cpp
@@ -1222,6 +1222,8 @@ void SCH_EDIT_FRAME::addCurrentItemToList( wxDC* aDC )
         EDA_CROSS_HAIR_MANAGER( m_canvas, aDC );  // Erase schematic cursor
         undoItem->Draw( m_canvas, aDC, wxPoint( 0, 0 ), GR_DEFAULT_DRAWMODE );
     }
+
+    m_canvas->Refresh();
 }