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
a0801e2d
Commit
a0801e2d
authored
May 13, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pad properties are back.
parent
929008c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
edit_tool.cpp
pcbnew/tools/edit_tool.cpp
+1
-1
edit_tool.h
pcbnew/tools/edit_tool.h
+2
-1
No files found.
pcbnew/tools/edit_tool.cpp
View file @
a0801e2d
...
...
@@ -231,7 +231,7 @@ int EDIT_TOOL::Properties( TOOL_EVENT& aEvent )
{
for
(
D_PAD
*
pad
=
static_cast
<
MODULE
*>
(
item
)
->
Pads
();
pad
;
pad
=
pad
->
Next
()
)
{
if
(
pad
->
ViewBBox
().
Contains
(
m_cursor
)
)
if
(
pad
->
ViewBBox
().
Contains
(
getViewControls
()
->
GetCursorPosition
()
)
)
{
// Turns out that user wants to edit a pad properties
item
=
pad
;
...
...
pcbnew/tools/edit_tool.h
View file @
a0801e2d
...
...
@@ -101,7 +101,8 @@ private:
///> Offset from the dragged item's center (anchor)
wxPoint
m_offset
;
///> Last cursor position
///> Last cursor position (needed for getModificationPoint() to avoid changes
///> of edit reference point).
VECTOR2I
m_cursor
;
///> Removes and frees a single BOARD_ITEM.
...
...
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