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
3c037a3c
Commit
3c037a3c
authored
Mar 28, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew, Module Editor: fix bug Bug #1161114 (pad not visible after undoing a move pad)
parent
4865a68f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
move-drag_pads.cpp
pcbnew/move-drag_pads.cpp
+1
-2
No files found.
pcbnew/move-drag_pads.cpp
View file @
3c037a3c
...
@@ -149,6 +149,7 @@ void PCB_BASE_FRAME::PlacePad( D_PAD* aPad, wxDC* DC )
...
@@ -149,6 +149,7 @@ void PCB_BASE_FRAME::PlacePad( D_PAD* aPad, wxDC* DC )
}
}
// Save old module and old items values
// Save old module and old items values
aPad
->
ClearFlags
();
wxPoint
pad_curr_position
=
aPad
->
GetPosition
();
wxPoint
pad_curr_position
=
aPad
->
GetPosition
();
aPad
->
SetPosition
(
Pad_OldPos
);
aPad
->
SetPosition
(
Pad_OldPos
);
...
@@ -192,8 +193,6 @@ void PCB_BASE_FRAME::PlacePad( D_PAD* aPad, wxDC* DC )
...
@@ -192,8 +193,6 @@ void PCB_BASE_FRAME::PlacePad( D_PAD* aPad, wxDC* DC )
aPad
->
SetX0
(
dX
+
aPad
->
GetPos0
().
x
);
aPad
->
SetX0
(
dX
+
aPad
->
GetPos0
().
x
);
aPad
->
SetY0
(
dY
+
aPad
->
GetPos0
().
y
);
aPad
->
SetY0
(
dY
+
aPad
->
GetPos0
().
y
);
aPad
->
ClearFlags
();
if
(
DC
)
if
(
DC
)
aPad
->
Draw
(
m_canvas
,
DC
,
GR_OR
);
aPad
->
Draw
(
m_canvas
,
DC
,
GR_OR
);
...
...
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