Commit 3aa390b5 authored by Dick Hollenbeck's avatar Dick Hollenbeck

WTF

parent 01a8442b
...@@ -974,34 +974,34 @@ void SCH_EDIT_FRAME::OnDragItem( wxCommandEvent& aEvent ) ...@@ -974,34 +974,34 @@ void SCH_EDIT_FRAME::OnDragItem( wxCommandEvent& aEvent )
switch( item->Type() ) switch( item->Type() )
{ {
case SCH_BUS_BUS_ENTRY_T: case SCH_BUS_BUS_ENTRY_T:
case SCH_BUS_WIRE_ENTRY_T: case SCH_BUS_WIRE_ENTRY_T:
case SCH_LINE_T: case SCH_LINE_T:
case SCH_JUNCTION_T: case SCH_JUNCTION_T:
case SCH_COMPONENT_T: case SCH_COMPONENT_T:
case SCH_LABEL_T: case SCH_LABEL_T:
case SCH_GLOBAL_LABEL_T: case SCH_GLOBAL_LABEL_T:
case SCH_HIERARCHICAL_LABEL_T: case SCH_HIERARCHICAL_LABEL_T:
case SCH_SHEET_T: case SCH_SHEET_T:
m_canvas->MoveCursorToCrossHair(); m_canvas->MoveCursorToCrossHair();
if( screen->m_BlockLocate.GetState() == STATE_NO_BLOCK ) if( screen->m_BlockLocate.GetState() == STATE_NO_BLOCK )
{ {
INSTALL_UNBUFFERED_DC( dc, m_canvas ); INSTALL_UNBUFFERED_DC( dc, m_canvas );
if( !HandleBlockBegin( &dc, dragType, GetCrossHairPosition() ) ) if( !HandleBlockBegin( &dc, dragType, GetCrossHairPosition() ) )
break; break;
// Give a non null size to the search block: // Give a non null size to the search block:
screen->m_BlockLocate.Inflate( 1 ); screen->m_BlockLocate.Inflate( 1 );
HandleBlockEnd( &dc ); HandleBlockEnd( &dc );
} }
break; break;
default: default:
wxFAIL_MSG( wxString::Format( wxT( "Cannot drag schematic item type %s." ), wxFAIL_MSG( wxString::Format( wxT( "Cannot drag schematic item type %s." ),
GetChars( item->GetClass() ) ) ); GetChars( item->GetClass() ) ) );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment