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
1ef68d73
Commit
1ef68d73
authored
Apr 03, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed missing transitions for EDIT_TOOLs.
parent
d8768079
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
edit_tool.cpp
pcbnew/tools/edit_tool.cpp
+12
-0
No files found.
pcbnew/tools/edit_tool.cpp
View file @
1ef68d73
...
@@ -266,7 +266,11 @@ int EDIT_TOOL::Rotate( TOOL_EVENT& aEvent )
...
@@ -266,7 +266,11 @@ int EDIT_TOOL::Rotate( TOOL_EVENT& aEvent )
bool
unselect
=
selection
.
Empty
();
bool
unselect
=
selection
.
Empty
();
if
(
!
makeSelection
(
selection
)
)
if
(
!
makeSelection
(
selection
)
)
{
setTransitions
();
return
0
;
return
0
;
}
wxPoint
rotatePoint
=
getModificationPoint
(
selection
);
wxPoint
rotatePoint
=
getModificationPoint
(
selection
);
...
@@ -312,7 +316,11 @@ int EDIT_TOOL::Flip( TOOL_EVENT& aEvent )
...
@@ -312,7 +316,11 @@ int EDIT_TOOL::Flip( TOOL_EVENT& aEvent )
bool
unselect
=
selection
.
Empty
();
bool
unselect
=
selection
.
Empty
();
if
(
!
makeSelection
(
selection
)
)
if
(
!
makeSelection
(
selection
)
)
{
setTransitions
();
return
0
;
return
0
;
}
wxPoint
flipPoint
=
getModificationPoint
(
selection
);
wxPoint
flipPoint
=
getModificationPoint
(
selection
);
...
@@ -354,7 +362,11 @@ int EDIT_TOOL::Remove( TOOL_EVENT& aEvent )
...
@@ -354,7 +362,11 @@ int EDIT_TOOL::Remove( TOOL_EVENT& aEvent )
const
SELECTION_TOOL
::
SELECTION
&
selection
=
m_selectionTool
->
GetSelection
();
const
SELECTION_TOOL
::
SELECTION
&
selection
=
m_selectionTool
->
GetSelection
();
if
(
!
makeSelection
(
selection
)
)
if
(
!
makeSelection
(
selection
)
)
{
setTransitions
();
return
0
;
return
0
;
}
// Get a copy of the selected items set
// Get a copy of the selected items set
PICKED_ITEMS_LIST
selectedItems
=
selection
.
items
;
PICKED_ITEMS_LIST
selectedItems
=
selection
.
items
;
...
...
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