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
ac8ee56e
Commit
ac8ee56e
authored
Jul 09, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pasted module texts are rotated in the right way.
parent
5941f196
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
edit_tool.cpp
pcbnew/tools/edit_tool.cpp
+6
-2
No files found.
pcbnew/tools/edit_tool.cpp
View file @
ac8ee56e
...
...
@@ -618,12 +618,16 @@ int EDIT_TOOL::PasteItems( TOOL_EVENT& aEvent )
{
// Do not add reference/value - convert them to the common type
text
->
SetType
(
TEXTE_MODULE
::
TEXT_is_DIVERS
);
currentModule
->
Add
(
clone
);
currentModule
->
Add
(
text
);
text
->
SetLocalCoord
();
// Whyyyyyyyyyyyyyyyyyyyyyy?! All other items conform to rotation performed
// on its parent module, but texts are so independent..
text
->
Rotate
(
text
->
GetPosition
(),
pastedModule
->
GetOrientation
()
);
}
else
if
(
EDGE_MODULE
*
edge
=
dyn_cast
<
EDGE_MODULE
*>
(
clone
)
)
{
currentModule
->
Add
(
clon
e
);
currentModule
->
Add
(
edg
e
);
edge
->
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