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
0f09b337
Commit
0f09b337
authored
Feb 23, 2011
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix developer warning message to only show on debug build. Fixes lp:624926
parent
b0ea88e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
22 deletions
+7
-22
onleftclick.cpp
eeschema/onleftclick.cpp
+7
-22
No files found.
eeschema/onleftclick.cpp
View file @
0f09b337
...
@@ -58,23 +58,13 @@ void SCH_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition )
...
@@ -58,23 +58,13 @@ void SCH_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition )
DrawPanel
->
Refresh
(
true
);
DrawPanel
->
Refresh
(
true
);
return
;
return
;
case
SCH_SCREEN_T
:
case
SCH_LINE_T
:
// May already be drawing segment.
DisplayError
(
this
,
wxT
(
"OnLeftClick err: unexpected type for Place"
)
);
item
->
m_Flags
=
0
;
break
;
case
SCH_LINE_T
:
// May already be drawing segment.
break
;
break
;
default
:
default
:
{
wxFAIL_MSG
(
wxT
(
"SCH_EDIT_FRAME::OnLeftClick error. Item type <"
)
+
wxString
msg
;
item
->
GetClass
()
+
wxT
(
"> is already being edited."
)
);
msg
.
Printf
(
wxT
(
"SCH_EDIT_FRAME::OnLeftClick err: m_Flags != 0, itmetype %d"
),
item
->
SetFlags
(
0
);
item
->
Type
());
DisplayError
(
this
,
msg
);
item
->
m_Flags
=
0
;
break
;
}
}
}
}
}
else
else
...
@@ -306,14 +296,9 @@ void SCH_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition )
...
@@ -306,14 +296,9 @@ void SCH_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition )
break
;
break
;
default
:
default
:
{
SetToolID
(
ID_SCH_NO_TOOL
,
DrawPanel
->
GetDefaultCursor
(),
wxEmptyString
);
SetToolID
(
0
,
wxCURSOR_ARROW
,
wxEmptyString
);
wxFAIL_MSG
(
wxT
(
"SCH_EDIT_FRAME::OnLeftClick invalid tool ID <"
)
+
wxString
msg
(
wxT
(
"SCH_EDIT_FRAME::OnLeftClick error state "
)
);
wxString
::
Format
(
wxT
(
"%d> selected."
),
m_ID_current_state
)
);
msg
<<
m_ID_current_state
;
DisplayError
(
this
,
msg
);
break
;
}
}
}
}
}
...
...
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