Commit cacb2225 authored by charras's avatar charras

Pcbnew: fixed a very minor bug when moving and place a footprint.

parent b8cc86bd
......@@ -87,7 +87,7 @@ DIALOG_NETLIST_FBP::DIALOG_NETLIST_FBP( wxWindow* parent, wxWindowID id, const w
bUpperSizer->Add( bRightSizerButtons, 0, wxALIGN_CENTER_VERTICAL, 5 );
bMainSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
bMainSizer->Add( bUpperSizer, 0, wxEXPAND, 5 );
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
bMainSizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
......@@ -104,6 +104,8 @@ DIALOG_NETLIST_FBP::DIALOG_NETLIST_FBP( wxWindow* parent, wxWindowID id, const w
bMainSizer->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
m_MessageWindow = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_CHARWRAP|wxTE_MULTILINE|wxTE_READONLY|wxTE_WORDWRAP );
m_MessageWindow->SetMinSize( wxSize( -1,200 ) );
bMainSizer->Add( m_MessageWindow, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
this->SetSizer( bMainSizer );
......
......@@ -78,7 +78,7 @@
<object class="sizeritem" expanded="1">
<property name="border">5</property>
<property name="flag">wxEXPAND</property>
<property name="proportion">1</property>
<property name="proportion">0</property>
<object class="wxBoxSizer" expanded="1">
<property name="minimum_size"></property>
<property name="name">bUpperSizer</property>
......@@ -815,7 +815,7 @@
<property name="id">wxID_ANY</property>
<property name="maximum_size"></property>
<property name="maxlength">0</property>
<property name="minimum_size"></property>
<property name="minimum_size">-1,200</property>
<property name="name">m_MessageWindow</property>
<property name="permission">protected</property>
<property name="pos"></property>
......
......@@ -460,6 +460,10 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module,
newpos = GetScreen()->m_Curseur;
module->SetPosition( newpos );
module->m_Flags = 0;
delete s_ModuleInitialCopy;
s_ModuleInitialCopy = NULL;
if( DC )
module->Draw( DrawPanel, DC, GR_OR );
......@@ -480,6 +484,11 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module,
// Delete drag list
EraseDragListe();
}
g_Drag_Pistes_On = FALSE;
DrawPanel->ManageCurseur = NULL;
DrawPanel->ForceCloseManageCurseur = NULL;
if( !aDoNotRecreateRatsnest )
Compile_Ratsnest( DC, true );
......@@ -488,13 +497,6 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module,
module->DisplayInfo( this );
DrawPanel->ManageCurseur = NULL;
DrawPanel->ForceCloseManageCurseur = NULL;
module->m_Flags = 0;
g_Drag_Pistes_On = FALSE;
delete s_ModuleInitialCopy;
s_ModuleInitialCopy = NULL;
}
......
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