From a1fad9d3fe127cc16a41d47051e6844ef4a1ea03 Mon Sep 17 00:00:00 2001 From: John Beard Date: Wed, 31 Oct 2018 13:53:55 +0000 Subject: [PATCH] Eeschema: allow dragging of text Text doesn't have "special" handling of dragging, like connected items (it's basically just a move). However, allowing "drag" to work on text makes handling text consistent when dragging other items. --- eeschema/sch_collectors.cpp | 1 + eeschema/schedit.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/eeschema/sch_collectors.cpp b/eeschema/sch_collectors.cpp index 40a829b9d9..29f3417878 100644 --- a/eeschema/sch_collectors.cpp +++ b/eeschema/sch_collectors.cpp @@ -143,6 +143,7 @@ const KICAD_T SCH_COLLECTOR::DraggableItems[] = { SCH_HIERARCHICAL_LABEL_T, SCH_COMPONENT_T, SCH_SHEET_T, + SCH_TEXT_T, EOT }; diff --git a/eeschema/schedit.cpp b/eeschema/schedit.cpp index f6f7ce79c4..233af91dfe 100644 --- a/eeschema/schedit.cpp +++ b/eeschema/schedit.cpp @@ -1175,6 +1175,7 @@ void SCH_EDIT_FRAME::OnDragItem( wxCommandEvent& aEvent ) case SCH_GLOBAL_LABEL_T: case SCH_HIERARCHICAL_LABEL_T: case SCH_SHEET_T: + case SCH_TEXT_T: m_canvas->MoveCursorToCrossHair(); if( screen->m_BlockLocate.GetState() == STATE_NO_BLOCK )