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
4ca2072a
Commit
4ca2072a
authored
Mar 30, 2008
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eeschema crashes when delete a sheet label (pin sheet), undo this and move the label
parent
0f54a686
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
change_log.txt
change_log.txt
+3
-0
class_drawsheet.cpp
eeschema/class_drawsheet.cpp
+17
-2
No files found.
change_log.txt
View file @
4ca2072a
...
@@ -9,6 +9,9 @@ email address.
...
@@ -9,6 +9,9 @@ email address.
================================================================================
================================================================================
+eeschema
+eeschema
Solved: eeschema crashes when create a new sheet, using the default filename and enter it.
Solved: eeschema crashes when create a new sheet, using the default filename and enter it.
Solved: eeschema crashes when delete a sheet label (pin sheet), undo this and move the label.
(bad value (not updated) for the DrawSheetLabelStruct.m_Parent member after redo command in sheet edit).
+all:
+all:
Added comments in gestfich.cpp to explain the default paths used by kicad to find help files and lib files
Added comments in gestfich.cpp to explain the default paths used by kicad to find help files and lib files
...
...
eeschema/class_drawsheet.cpp
View file @
4ca2072a
...
@@ -105,7 +105,7 @@ DrawSheetStruct* DrawSheetStruct::GenCopy()
...
@@ -105,7 +105,7 @@ DrawSheetStruct* DrawSheetStruct::GenCopy()
{
{
Slabel
=
newitem
->
m_Label
=
label
->
GenCopy
();
Slabel
=
newitem
->
m_Label
=
label
->
GenCopy
();
Slabel
->
m_Parent
=
newitem
;
Slabel
->
m_Parent
=
newitem
;
label
=
(
DrawSheetLabelStruct
*
)
label
->
Pnext
;
label
=
label
->
Next
()
;
}
}
while
(
label
)
while
(
label
)
...
@@ -113,7 +113,7 @@ DrawSheetStruct* DrawSheetStruct::GenCopy()
...
@@ -113,7 +113,7 @@ DrawSheetStruct* DrawSheetStruct::GenCopy()
Slabel
->
Pnext
=
label
->
GenCopy
();
Slabel
->
Pnext
=
label
->
GenCopy
();
Slabel
=
(
DrawSheetLabelStruct
*
)
Slabel
->
Pnext
;
Slabel
=
(
DrawSheetLabelStruct
*
)
Slabel
->
Pnext
;
Slabel
->
m_Parent
=
newitem
;
Slabel
->
m_Parent
=
newitem
;
label
=
(
DrawSheetLabelStruct
*
)
label
->
Pnext
;
label
=
label
->
Next
()
;
}
}
/* don't copy screen data - just reference it. */
/* don't copy screen data - just reference it. */
...
@@ -140,6 +140,21 @@ void DrawSheetStruct::SwapData( DrawSheetStruct* copyitem )
...
@@ -140,6 +140,21 @@ void DrawSheetStruct::SwapData( DrawSheetStruct* copyitem )
EXCHG
(
m_FileNameSize
,
copyitem
->
m_FileNameSize
);
EXCHG
(
m_FileNameSize
,
copyitem
->
m_FileNameSize
);
EXCHG
(
m_Label
,
copyitem
->
m_Label
);
EXCHG
(
m_Label
,
copyitem
->
m_Label
);
EXCHG
(
m_NbLabel
,
copyitem
->
m_NbLabel
);
EXCHG
(
m_NbLabel
,
copyitem
->
m_NbLabel
);
// Ensure sheet labels have their .m_Parent member poiuntin really on their parent, after swapping.
DrawSheetLabelStruct
*
label
=
m_Label
;
while
(
label
)
{
label
->
m_Parent
=
this
;
label
=
label
->
Next
();
}
label
=
copyitem
->
m_Label
;
while
(
label
)
{
label
->
m_Parent
=
copyitem
;
label
=
label
->
Next
();
}
}
}
...
...
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