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
e46780f8
Commit
e46780f8
authored
Jul 22, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modules loaded by the module editor are placed in the world origin (GAL).
parent
38027eb9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
librairi.cpp
pcbnew/librairi.cpp
+4
-0
loadcmp.cpp
pcbnew/loadcmp.cpp
+6
-1
No files found.
pcbnew/librairi.cpp
View file @
e46780f8
...
...
@@ -272,6 +272,10 @@ MODULE* FOOTPRINT_EDIT_FRAME::Import_Module()
// Display info :
SetMsgPanel
(
module
);
PlaceModule
(
module
,
NULL
);
if
(
IsGalCanvasActive
()
)
module
->
SetPosition
(
wxPoint
(
0
,
0
)
);
GetBoard
()
->
m_Status_Pcb
=
0
;
GetBoard
()
->
BuildListOfNets
();
updateView
();
...
...
pcbnew/loadcmp.cpp
View file @
e46780f8
...
...
@@ -276,7 +276,12 @@ MODULE* PCB_BASE_FRAME::LoadModuleFromLibrary( const wxString& aLibrary,
module
->
SetFlags
(
IS_NEW
);
module
->
SetLink
(
0
);
module
->
SetPosition
(
curspos
);
if
(
IsGalCanvasActive
()
)
module
->
SetPosition
(
wxPoint
(
0
,
0
)
);
// cursor in GAL may not be initialized at the moment
else
module
->
SetPosition
(
curspos
);
module
->
SetTimeStamp
(
GetNewTimeStamp
()
);
GetBoard
()
->
m_Status_Pcb
=
0
;
...
...
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