From 79015495b1ba126ce14e6b090292ed6556b9e6f9 Mon Sep 17 00:00:00 2001
From: Dick Hollenbeck <dick@softplc.com>
Date: Tue, 4 Dec 2012 13:09:53 -0600
Subject: [PATCH] Prevent the double click from being as a single click in the
 parent window which would cause the part to be parked rather than staying in
 drag mode.

---
 eeschema/viewlib_frame.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/eeschema/viewlib_frame.cpp b/eeschema/viewlib_frame.cpp
index 07f6fccded..582eca93cd 100644
--- a/eeschema/viewlib_frame.cpp
+++ b/eeschema/viewlib_frame.cpp
@@ -502,7 +502,12 @@ void LIB_VIEW_FRAME::DClickOnCmpList( wxCommandEvent& event )
 {
     if( m_Semaphore )
     {
-        ExportToSchematicLibraryPart ( event );
+        ExportToSchematicLibraryPart( event );
+
+        // Prevent the double click from being as a single click in the parent
+        // window which would cause the part to be parked rather than staying
+        // in drag mode.
+        event.StopPropagation();
     }
 }