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
49dd416c
Commit
49dd416c
authored
Jul 09, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dragged items offset is cleared when dragging is finished.
parent
f32419f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
edit_tool.cpp
pcbnew/tools/edit_tool.cpp
+5
-0
No files found.
pcbnew/tools/edit_tool.cpp
View file @
49dd416c
...
@@ -65,6 +65,9 @@ bool EDIT_TOOL::Init()
...
@@ -65,6 +65,9 @@ bool EDIT_TOOL::Init()
m_selectionTool
->
AddMenuItem
(
COMMON_ACTIONS
::
remove
,
SELECTION_CONDITIONS
::
NotEmpty
);
m_selectionTool
->
AddMenuItem
(
COMMON_ACTIONS
::
remove
,
SELECTION_CONDITIONS
::
NotEmpty
);
m_selectionTool
->
AddMenuItem
(
COMMON_ACTIONS
::
properties
,
SELECTION_CONDITIONS
::
NotEmpty
);
m_selectionTool
->
AddMenuItem
(
COMMON_ACTIONS
::
properties
,
SELECTION_CONDITIONS
::
NotEmpty
);
m_offset
.
x
=
0
;
m_offset
.
y
=
0
;
setTransitions
();
setTransitions
();
return
true
;
return
true
;
...
@@ -186,6 +189,8 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent )
...
@@ -186,6 +189,8 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent )
}
}
m_dragging
=
false
;
m_dragging
=
false
;
m_offset
.
x
=
0
;
m_offset
.
y
=
0
;
if
(
restore
)
if
(
restore
)
{
{
...
...
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