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
94a46bf2
Commit
94a46bf2
authored
Aug 01, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed pcbnew crash when a locked footprint is dragged from an edge of the screen.
parent
73005087
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
wx_view_controls.cpp
common/view/wx_view_controls.cpp
+1
-1
edit_tool.cpp
pcbnew/tools/edit_tool.cpp
+2
-2
No files found.
common/view/wx_view_controls.cpp
View file @
94a46bf2
...
...
@@ -240,7 +240,7 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
#if wxCHECK_VERSION( 3, 0, 0 )
moveEvent
.
SetControlDown
(
wxGetKeyState
(
WXK_CONTROL
)
);
moveEvent
.
SetShiftDown
(
wxGetKeyState
(
WXK_SHIFT
)
);
moveEvent
.
SetAltDown
(
wxGetKeyState
(
WXK_ALT
)
);
moveEvent
.
SetAltDown
(
wxGetKeyState
(
WXK_ALT
)
);
#else
// wx <3.0 do not have accessors, but the fields are exposed
moveEvent
.
m_controlDown
=
wxGetKeyState
(
WXK_CONTROL
);
...
...
pcbnew/tools/edit_tool.cpp
View file @
94a46bf2
...
...
@@ -102,7 +102,6 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent )
PCB_BASE_EDIT_FRAME
*
editFrame
=
getEditFrame
<
PCB_BASE_EDIT_FRAME
>
();
controls
->
ShowCursor
(
true
);
controls
->
SetSnapping
(
true
);
controls
->
SetAutoPan
(
true
);
controls
->
ForceCursorPosition
(
false
);
// Main loop: keep receiving events
...
...
@@ -159,7 +158,7 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent )
}
else
// Prepare to start dragging
{
if
(
m_selectionTool
->
CheckLock
()
)
if
(
m_selectionTool
->
CheckLock
()
||
selection
.
Empty
()
)
break
;
// Save items, so changes can be undone
...
...
@@ -188,6 +187,7 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent )
wxPoint
(
origin
.
x
,
origin
.
y
);
}
controls
->
SetAutoPan
(
true
);
m_dragging
=
true
;
}
...
...
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