Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
cacb2225
Commit
cacb2225
authored
Dec 29, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fixed a very minor bug when moving and place a footprint.
parent
b8cc86bd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
dialog_netlist_fbp.cpp
pcbnew/dialog_netlist_fbp.cpp
+3
-1
dialog_netlist_fbp.fbp
pcbnew/dialog_netlist_fbp.fbp
+2
-2
modules.cpp
pcbnew/modules.cpp
+9
-7
No files found.
pcbnew/dialog_netlist_fbp.cpp
View file @
cacb2225
...
@@ -87,7 +87,7 @@ DIALOG_NETLIST_FBP::DIALOG_NETLIST_FBP( wxWindow* parent, wxWindowID id, const w
...
@@ -87,7 +87,7 @@ DIALOG_NETLIST_FBP::DIALOG_NETLIST_FBP( wxWindow* parent, wxWindowID id, const w
bUpperSizer
->
Add
(
bRightSizerButtons
,
0
,
wxALIGN_CENTER_VERTICAL
,
5
);
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
);
m_staticline1
=
new
wxStaticLine
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxLI_HORIZONTAL
);
bMainSizer
->
Add
(
m_staticline1
,
0
,
wxEXPAND
|
wxALL
,
5
);
bMainSizer
->
Add
(
m_staticline1
,
0
,
wxEXPAND
|
wxALL
,
5
);
...
@@ -104,6 +104,8 @@ DIALOG_NETLIST_FBP::DIALOG_NETLIST_FBP( wxWindow* parent, wxWindowID id, const w
...
@@ -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
);
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
=
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
);
bMainSizer
->
Add
(
m_MessageWindow
,
1
,
wxEXPAND
|
wxBOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
this
->
SetSizer
(
bMainSizer
);
this
->
SetSizer
(
bMainSizer
);
...
...
pcbnew/dialog_netlist_fbp.fbp
View file @
cacb2225
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
<object
class=
"sizeritem"
expanded=
"1"
>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
bUpperSizer
</property>
<property
name=
"name"
>
bUpperSizer
</property>
...
@@ -815,7 +815,7 @@
...
@@ -815,7 +815,7 @@
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maximum_size"
></property>
<property
name=
"maxlength"
>
0
</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=
"name"
>
m_MessageWindow
</property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pos"
></property>
<property
name=
"pos"
></property>
...
...
pcbnew/modules.cpp
View file @
cacb2225
...
@@ -460,6 +460,10 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module,
...
@@ -460,6 +460,10 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module,
newpos
=
GetScreen
()
->
m_Curseur
;
newpos
=
GetScreen
()
->
m_Curseur
;
module
->
SetPosition
(
newpos
);
module
->
SetPosition
(
newpos
);
module
->
m_Flags
=
0
;
delete
s_ModuleInitialCopy
;
s_ModuleInitialCopy
=
NULL
;
if
(
DC
)
if
(
DC
)
module
->
Draw
(
DrawPanel
,
DC
,
GR_OR
);
module
->
Draw
(
DrawPanel
,
DC
,
GR_OR
);
...
@@ -480,6 +484,11 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module,
...
@@ -480,6 +484,11 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module,
// Delete drag list
// Delete drag list
EraseDragListe
();
EraseDragListe
();
}
}
g_Drag_Pistes_On
=
FALSE
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
if
(
!
aDoNotRecreateRatsnest
)
if
(
!
aDoNotRecreateRatsnest
)
Compile_Ratsnest
(
DC
,
true
);
Compile_Ratsnest
(
DC
,
true
);
...
@@ -488,13 +497,6 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module,
...
@@ -488,13 +497,6 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module,
module
->
DisplayInfo
(
this
);
module
->
DisplayInfo
(
this
);
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
module
->
m_Flags
=
0
;
g_Drag_Pistes_On
=
FALSE
;
delete
s_ModuleInitialCopy
;
s_ModuleInitialCopy
=
NULL
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment