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
f51ac9fc
Commit
f51ac9fc
authored
Aug 31, 2011
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eeschema: fix incorrect redo command for rotated items
parent
4402c97c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
schematic_undo_redo.cpp
eeschema/schematic_undo_redo.cpp
+5
-4
No files found.
eeschema/schematic_undo_redo.cpp
View file @
f51ac9fc
...
...
@@ -305,11 +305,7 @@ void SCH_EDIT_FRAME::SaveCopyInUndoList( PICKED_ITEMS_LIST& aItemsList,
case
UR_ROTATED
:
case
UR_NEW
:
case
UR_DELETED
:
break
;
case
UR_EXCHANGE_T
:
wxLogMessage
(
"commandToUndo %p, save UR_EXCHANGE_T %p %p"
,
commandToUndo
,
item
,
commandToUndo
->
GetPickedItemLink
(
ii
));
break
;
default
:
...
...
@@ -388,8 +384,13 @@ void SCH_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList, bool aRed
case
UR_ROTATED
:
{
// To undo a rotate 90 deg transform we must rotate 270 deg to undo
// and 90 deg to redo:
wxPoint
RotationPoint
=
aList
->
m_TransformPoint
;
item
->
Rotate
(
RotationPoint
);
if
(
aRedoCommand
)
break
;
// A only one rotate transform is OK
// Make 3 rotate 90 deg transforms is this is actually an undo command
item
->
Rotate
(
RotationPoint
);
item
->
Rotate
(
RotationPoint
);
}
...
...
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