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
873e0740
Commit
873e0740
authored
Feb 28, 2015
by
John Beard
Committed by
Wayne Stambaugh
Feb 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in footrpint editor when creating circular arrays. (fixes lp:1424331)
parent
00f8994e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
0 deletions
+17
-0
class_edge_mod.cpp
pcbnew/class_edge_mod.cpp
+9
-0
class_edge_mod.h
pcbnew/class_edge_mod.h
+2
-0
class_pad.cpp
pcbnew/class_pad.cpp
+3
-0
class_text_mod.cpp
pcbnew/class_text_mod.cpp
+3
-0
No files found.
pcbnew/class_edge_mod.cpp
View file @
873e0740
...
...
@@ -324,3 +324,12 @@ void EDGE_MODULE::Flip( const wxPoint& aCentre )
SetLayer
(
FlipLayer
(
GetLayer
()
)
);
}
void
EDGE_MODULE
::
Rotate
(
const
wxPoint
&
aRotCentre
,
double
aAngle
)
{
// do the base class rotation
DRAWSEGMENT
::
Rotate
(
aRotCentre
,
aAngle
);
// and now work out the new offset
SetLocalCoord
();
}
pcbnew/class_edge_mod.h
View file @
873e0740
...
...
@@ -100,6 +100,8 @@ public:
EDA_ITEM
*
Clone
()
const
;
void
Rotate
(
const
wxPoint
&
aRotCentre
,
double
aAngle
);
// override
#if defined(DEBUG)
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
#endif
...
...
pcbnew/class_pad.cpp
View file @
873e0740
...
...
@@ -838,6 +838,9 @@ void D_PAD::Rotate( const wxPoint& aRotCentre, double aAngle )
{
RotatePoint
(
&
m_Pos
,
aRotCentre
,
aAngle
);
m_Orient
+=
aAngle
;
NORMALIZE_ANGLE_360
(
m_Orient
);
SetLocalCoord
();
}
...
...
pcbnew/class_text_mod.cpp
View file @
873e0740
...
...
@@ -90,8 +90,11 @@ TEXTE_MODULE::~TEXTE_MODULE()
void
TEXTE_MODULE
::
Rotate
(
const
wxPoint
&
aRotCentre
,
double
aAngle
)
{
RotatePoint
(
&
m_Pos
,
aRotCentre
,
aAngle
);
m_Orient
+=
aAngle
;
NORMALIZE_ANGLE_360
(
m_Orient
);
SetLocalCoord
();
}
...
...
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