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
198b10cf
Commit
198b10cf
authored
Mar 21, 2008
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed an very old bug in onrightclick.cpp which crashes eeschema.
parent
9e35d3ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
change_log.txt
change_log.txt
+7
-0
onrightclick.cpp
eeschema/onrightclick.cpp
+17
-6
No files found.
change_log.txt
View file @
198b10cf
...
@@ -5,6 +5,13 @@ Started 2007-June-11
...
@@ -5,6 +5,13 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.
2008-Mar-21 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+eeschema
Removed an very old bug in onrightclick.cpp which crashes eeschema when right clicking in a field inside a component.
Old code should never works, but ...
2008-Mar-20 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
2008-Mar-20 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
================================================================================
+pcbnew
+pcbnew
...
...
eeschema/onrightclick.cpp
View file @
198b10cf
...
@@ -205,11 +205,11 @@ bool WinEDA_SchematicFrame::OnRightClick( const wxPoint& MousePos,
...
@@ -205,11 +205,11 @@ bool WinEDA_SchematicFrame::OnRightClick( const wxPoint& MousePos,
break
;
break
;
// Many fields are inside a component. If this is the case, add the component menu
// Many fields are inside a component. If this is the case, add the component menu
SCH_COMPONENT
*
Component
=
LocateSmallestComponent
(
(
SCH_SCREEN
*
)
GetScreen
()
);
SCH_COMPONENT
*
Component
=
LocateSmallestComponent
(
(
SCH_SCREEN
*
)
GetScreen
()
);
if
(
Component
)
if
(
Component
)
{
{
PopMenu
->
AppendSeparator
();
PopMenu
->
AppendSeparator
();
AddMenusForComponent
(
PopMenu
,
(
SCH_COMPONENT
*
)
DrawStruc
t
);
AddMenusForComponent
(
PopMenu
,
Componen
t
);
}
}
}
}
break
;
break
;
...
@@ -284,6 +284,12 @@ void AddMenusForComponent( wxMenu* PopMenu, SCH_COMPONENT* Component )
...
@@ -284,6 +284,12 @@ void AddMenusForComponent( wxMenu* PopMenu, SCH_COMPONENT* Component )
/* Add menu commands for a component
/* Add menu commands for a component
*/
*/
{
{
if
(
Component
->
Type
()
!=
TYPE_SCH_COMPONENT
)
{
wxASSERT
(
0
);
return
;
}
wxString
msg
;
wxString
msg
;
EDA_LibComponentStruct
*
LibEntry
;
EDA_LibComponentStruct
*
LibEntry
;
...
@@ -326,7 +332,9 @@ void AddMenusForComponent( wxMenu* PopMenu, SCH_COMPONENT* Component )
...
@@ -326,7 +332,9 @@ void AddMenusForComponent( wxMenu* PopMenu, SCH_COMPONENT* Component )
ADD_MENUITEM
(
editmenu
,
ID_POPUP_SCH_EDIT_REF_CMP
,
_
(
"Reference"
),
edit_comp_ref_xpm
);
ADD_MENUITEM
(
editmenu
,
ID_POPUP_SCH_EDIT_REF_CMP
,
_
(
"Reference"
),
edit_comp_ref_xpm
);
msg
=
AddHotkeyName
(
_
(
"Footprint "
),
s_Schematic_Hokeys_Descr
,
HK_EDIT_COMPONENT_FOOTPRINT
);
msg
=
AddHotkeyName
(
_
(
"Footprint "
),
s_Schematic_Hokeys_Descr
,
HK_EDIT_COMPONENT_FOOTPRINT
);
ADD_MENUITEM
(
editmenu
,
ID_POPUP_SCH_EDIT_FOOTPRINT_CMP
,
msg
,
edit_comp_footprint_xpm
);
ADD_MENUITEM
(
editmenu
,
ID_POPUP_SCH_EDIT_FOOTPRINT_CMP
,
msg
,
edit_comp_footprint_xpm
);
}
}
if
(
LibEntry
&&
(
LookForConvertPart
(
LibEntry
)
>=
2
)
)
if
(
LibEntry
&&
(
LookForConvertPart
(
LibEntry
)
>=
2
)
)
...
@@ -387,9 +395,12 @@ void AddMenusForGLabel( wxMenu* PopMenu, SCH_GLOBALLABEL* GLabel )
...
@@ -387,9 +395,12 @@ void AddMenusForGLabel( wxMenu* PopMenu, SCH_GLOBALLABEL* GLabel )
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
menu_change_type
,
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT
,
_
(
"Change Type"
),
gl_change_xpm
);
ID_POPUP_SCH_CHANGE_TYPE_TEXT
,
_
(
"Change Type"
),
gl_change_xpm
);
}
}
/*******************************************************************/
/*******************************************************************/
void
AddMenusForHLabel
(
wxMenu
*
PopMenu
,
SCH_HIERLABEL
*
HLabel
)
void
AddMenusForHLabel
(
wxMenu
*
PopMenu
,
SCH_HIERLABEL
*
HLabel
)
/*******************************************************************/
/*******************************************************************/
/* Add menu commands for a hierarchal Label
/* Add menu commands for a hierarchal Label
*/
*/
{
{
...
...
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