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
4a9dffc3
Commit
4a9dffc3
authored
Aug 27, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed in Eeschema a bug that crashed Eeschema after a break wire command
parent
cfdb2839
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
171 additions
and
122 deletions
+171
-122
cleanup.cpp
eeschema/cleanup.cpp
+1
-13
protos.h
eeschema/protos.h
+1
-3
schedit.cpp
eeschema/schedit.cpp
+4
-4
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+165
-102
No files found.
eeschema/cleanup.cpp
View file @
4a9dffc3
...
...
@@ -134,8 +134,7 @@ void BreakSegmentOnJunction( SCH_SCREEN* Screen )
* ( excluding ends)
* fill aPicklist with modified items if non null
*/
void
BreakSegment
(
SCH_SCREEN
*
aScreen
,
wxPoint
aBreakpoint
,
PICKED_ITEMS_LIST
*
aPicklist
)
void
BreakSegment
(
SCH_SCREEN
*
aScreen
,
wxPoint
aBreakpoint
)
{
EDA_DrawLineStruct
*
segment
,
*
NewSegment
;
for
(
SCH_ITEM
*
DrawList
=
aScreen
->
EEDrawList
;
DrawList
;
DrawList
=
DrawList
->
Next
()
)
...
...
@@ -153,23 +152,12 @@ void BreakSegment(SCH_SCREEN * aScreen, wxPoint aBreakpoint,
if
(
(
segment
->
m_Start
==
aBreakpoint
)
||
(
segment
->
m_End
==
aBreakpoint
)
)
continue
;
/* Ici il faut couper le segment en 2 */
if
(
aPicklist
)
// First: put copy of the old segment in undo list
{
ITEM_PICKER
picker
((
SCH_ITEM
*
)
segment
->
GenCopy
(),
UR_CHANGED
);
picker
.
m_Link
=
segment
;
aPicklist
->
PushItem
(
picker
);
}
NewSegment
=
segment
->
GenCopy
();
NewSegment
->
m_Start
=
aBreakpoint
;
segment
->
m_End
=
NewSegment
->
m_Start
;
NewSegment
->
SetNext
(
segment
->
Next
()
);
segment
->
SetNext
(
NewSegment
);
DrawList
=
NewSegment
;
if
(
aPicklist
)
{
ITEM_PICKER
picker
(
NewSegment
,
UR_NEW
);
aPicklist
->
PushItem
(
picker
);
}
}
}
...
...
eeschema/protos.h
View file @
4a9dffc3
...
...
@@ -342,10 +342,8 @@ void BreakSegmentOnJunction( SCH_SCREEN * Screen );
/* Break a segment ( BUS, WIRE ) int 2 segments at location aBreakpoint,
* if aBreakpoint in on segment segment
* ( excluding ends)
* fill aPicklist with modified items if non null
*/
void
BreakSegment
(
SCH_SCREEN
*
aScreen
,
wxPoint
aBreakpoint
,
PICKED_ITEMS_LIST
*
aPicklist
=
NULL
);
void
BreakSegment
(
SCH_SCREEN
*
aScreen
,
wxPoint
aBreakpoint
);
/**************/
/* EECLASS.CPP */
...
...
eeschema/schedit.cpp
View file @
4a9dffc3
...
...
@@ -338,10 +338,10 @@ void WinEDA_SchematicFrame::Process_Special_Functions( wxCommandEvent& event )
case
ID_POPUP_SCH_BREAK_WIRE
:
{
DrawPanel
->
MouseToCursorSchema
();
PICKED_ITEMS_LIST
picklistForUndo
;
BreakSegment
(
screen
,
screen
->
m_Curseur
,
&
picklistForUndo
);
if
(
picklistForUndo
.
GetCount
()
)
SaveCopyInUndoList
(
picklistForUndo
,
UR_UNSPECIFIED
);
SCH_ITEM
*
oldWiresList
=
screen
->
ExtractWires
(
true
)
;
BreakSegment
(
screen
,
screen
->
m_Curseur
);
if
(
oldWiresList
)
SaveCopyInUndoList
(
oldWiresList
,
UR_WIRE_IMAGE
);
TestDanglingEnds
(
screen
->
EEDrawList
,
&
dc
);
}
break
;
...
...
internat/fr/kicad.mo
View file @
4a9dffc3
No preview for this file type
internat/fr/kicad.po
View file @
4a9dffc3
This diff is collapsed.
Click to expand it.
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