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
d6fcb879
Commit
d6fcb879
authored
Jun 10, 2007
by
lifekidyeaa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a bug that, when in module editor a module was not loaded, the null pointer to this
module would not be dereferenced.
parent
ee194b63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
modedit.cpp
pcbnew/modedit.cpp
+12
-8
No files found.
pcbnew/modedit.cpp
View file @
d6fcb879
...
...
@@ -317,14 +317,18 @@ wxClientDC dc(DrawPanel);
if
(
m_Pcb
->
m_Modules
)
m_Pcb
->
m_Modules
->
m_Flags
=
0
;
//if either m_Reference or m_Value are gone, reinstate them -
//otherwise it becomes hard to see what you are working with in the layout!
TEXTE_MODULE
*
ref
=
m_Pcb
->
m_Modules
->
m_Reference
;
TEXTE_MODULE
*
val
=
m_Pcb
->
m_Modules
->
m_Value
;
ref
->
m_NoShow
=
0
;
val
->
m_NoShow
=
0
;
ref
->
m_Type
=
0
;
val
->
m_Type
=
1
;
if
(
ref
->
m_Text
.
Length
()
==
0
)
ref
->
m_Text
=
L"Ref**"
;
if
(
val
->
m_Text
.
Length
()
==
0
)
val
->
m_Text
=
L"Val**"
;
if
(
m_Pcb
&&
m_Pcb
->
m_Modules
){
TEXTE_MODULE
*
ref
=
m_Pcb
->
m_Modules
->
m_Reference
;
TEXTE_MODULE
*
val
=
m_Pcb
->
m_Modules
->
m_Value
;
if
(
val
&
ref
){
ref
->
m_NoShow
=
0
;
val
->
m_NoShow
=
0
;
ref
->
m_Type
=
0
;
val
->
m_Type
=
1
;
if
(
ref
->
m_Text
.
Length
()
==
0
)
ref
->
m_Text
=
L"Ref**"
;
if
(
val
->
m_Text
.
Length
()
==
0
)
val
->
m_Text
=
L"Val**"
;
}
}
GetScreen
()
->
ClrModify
();
Zoom_Automatique
(
TRUE
);
if
(
m_Draw3DFrame
)
...
...
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