r5936 - trunk/eda/fped

werner at docs.openmoko.org werner at docs.openmoko.org
Sun Apr 25 01:08:39 CEST 2010


Author: werner
Date: 2010-04-25 01:08:39 +0200 (Sun, 25 Apr 2010)
New Revision: 5936

Modified:
   trunk/eda/fped/gui_canvas.c
Log:
Dragging a frame into the canvas reuses the hover and drag system. In order to
avoid accidently dragging away bits the selected item (and confusing the
internal logic of the hover and drag system in the process), we have to make
sure nothing is selected when we enter the canvas.

- gui_canvas.c (canvas_frame_begin): make sure no instance is selected



Modified: trunk/eda/fped/gui_canvas.c
===================================================================
--- trunk/eda/fped/gui_canvas.c	2010-04-24 22:18:21 UTC (rev 5935)
+++ trunk/eda/fped/gui_canvas.c	2010-04-24 23:08:39 UTC (rev 5936)
@@ -192,6 +192,8 @@
 
 void canvas_frame_begin(struct frame *frame)
 {
+	inst_deselect(); /* don't drag away bits of the selected object */
+	redraw();
 	tool_push_frame(frame);
 }
 




More information about the commitlog mailing list