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
571bca20
Commit
571bca20
authored
Apr 06, 2012
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fix Bug #975014
parent
100ea3a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
class_module_transform_functions.cpp
pcbnew/class_module_transform_functions.cpp
+2
-2
dialog_edit_module_for_BoardEditor.cpp
pcbnew/dialogs/dialog_edit_module_for_BoardEditor.cpp
+4
-4
No files found.
pcbnew/class_module_transform_functions.cpp
View file @
571bca20
...
...
@@ -283,8 +283,8 @@ void MODULE::SetPosition( const wxPoint& newpos )
wxPoint
delta
=
newpos
-
m_Pos
;
m_Pos
+=
delta
;
m_Reference
->
m_Pos
+=
delta
;
m_Value
->
m_Pos
+=
delta
;
m_Reference
->
SetPosition
(
m_Reference
->
GetPosition
()
+
delta
)
;
m_Value
->
SetPosition
(
m_Value
->
GetPosition
()
+
delta
)
;
for
(
D_PAD
*
pad
=
m_Pads
;
pad
;
pad
=
pad
->
Next
()
)
{
...
...
pcbnew/dialogs/dialog_edit_module_for_BoardEditor.cpp
View file @
571bca20
...
...
@@ -480,6 +480,10 @@ void DIALOG_MODULE_BOARD_EDITOR::OnOkClick( wxCommandEvent& event )
m_CurrentModule
->
Draw
(
m_Parent
->
GetCanvas
(),
m_DC
,
GR_XOR
);
}
// Init Fields (should be first, because they can be moved or/and flipped later):
m_CurrentModule
->
m_Reference
->
Copy
(
m_ReferenceCopy
);
m_CurrentModule
->
m_Value
->
Copy
(
m_ValueCopy
);
// Initialize masks clearances
m_CurrentModule
->
SetLocalClearance
(
ReturnValueFromTextCtrl
(
*
m_NetClearanceValueCtrl
,
m_Parent
->
GetInternalUnits
()
)
);
...
...
@@ -549,10 +553,6 @@ void DIALOG_MODULE_BOARD_EDITOR::OnOkClick( wxCommandEvent& event )
m_CurrentModule
->
m_CntRot90
=
m_CostRot90Ctrl
->
GetValue
();
m_CurrentModule
->
m_CntRot180
=
m_CostRot180Ctrl
->
GetValue
();
// Init Fields:
m_CurrentModule
->
m_Reference
->
Copy
(
m_ReferenceCopy
);
m_CurrentModule
->
m_Value
->
Copy
(
m_ValueCopy
);
/* Now, set orientation. must be made after others changes,
* because rotation changes fields positions on board according to the new orientation
* (relative positions are not modified)
...
...
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