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
3aa390b5
Commit
3aa390b5
authored
Jul 31, 2014
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WTF
parent
01a8442b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
schedit.cpp
eeschema/schedit.cpp
+23
-23
No files found.
eeschema/schedit.cpp
View file @
3aa390b5
...
...
@@ -974,34 +974,34 @@ void SCH_EDIT_FRAME::OnDragItem( wxCommandEvent& aEvent )
switch
(
item
->
Type
()
)
{
case
SCH_BUS_BUS_ENTRY_T
:
case
SCH_BUS_WIRE_ENTRY_T
:
case
SCH_LINE_T
:
case
SCH_JUNCTION_T
:
case
SCH_COMPONENT_T
:
case
SCH_LABEL_T
:
case
SCH_GLOBAL_LABEL_T
:
case
SCH_HIERARCHICAL_LABEL_T
:
case
SCH_SHEET_T
:
m_canvas
->
MoveCursorToCrossHair
();
case
SCH_BUS_BUS_ENTRY_T
:
case
SCH_BUS_WIRE_ENTRY_T
:
case
SCH_LINE_T
:
case
SCH_JUNCTION_T
:
case
SCH_COMPONENT_T
:
case
SCH_LABEL_T
:
case
SCH_GLOBAL_LABEL_T
:
case
SCH_HIERARCHICAL_LABEL_T
:
case
SCH_SHEET_T
:
m_canvas
->
MoveCursorToCrossHair
();
if
(
screen
->
m_BlockLocate
.
GetState
()
==
STATE_NO_BLOCK
)
{
INSTALL_UNBUFFERED_DC
(
dc
,
m_canvas
);
if
(
screen
->
m_BlockLocate
.
GetState
()
==
STATE_NO_BLOCK
)
{
INSTALL_UNBUFFERED_DC
(
dc
,
m_canvas
);
if
(
!
HandleBlockBegin
(
&
dc
,
dragType
,
GetCrossHairPosition
()
)
)
break
;
if
(
!
HandleBlockBegin
(
&
dc
,
dragType
,
GetCrossHairPosition
()
)
)
break
;
// Give a non null size to the search block:
screen
->
m_BlockLocate
.
Inflate
(
1
);
HandleBlockEnd
(
&
dc
);
}
// Give a non null size to the search block:
screen
->
m_BlockLocate
.
Inflate
(
1
);
HandleBlockEnd
(
&
dc
);
}
break
;
break
;
default
:
wxFAIL_MSG
(
wxString
::
Format
(
wxT
(
"Cannot drag schematic item type %s."
),
GetChars
(
item
->
GetClass
()
)
)
);
default
:
wxFAIL_MSG
(
wxString
::
Format
(
wxT
(
"Cannot drag schematic item type %s."
),
GetChars
(
item
->
GetClass
()
)
)
);
}
}
...
...
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