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
c03abc0b
Commit
c03abc0b
authored
Oct 23, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eeschema, libedit: fixed a bug than crashes libedit when using the delete tool, on a left click.
parent
4b2f33a9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
44 deletions
+20
-44
base_struct.cpp
common/base_struct.cpp
+1
-0
dialog_cvpcb_config.cpp
cvpcb/dialog_cvpcb_config.cpp
+5
-14
annotate_dialog.rc
eeschema/annotate_dialog.rc
+0
-1
classes_body_items.cpp
eeschema/classes_body_items.cpp
+1
-1
dialog_eeschema_config.cpp
eeschema/dialog_eeschema_config.cpp
+5
-14
libedit_onleftclick.cpp
eeschema/libedit_onleftclick.cpp
+3
-0
dialog_pcbnew_config_libs_and_paths.cpp
pcbnew/dialog_pcbnew_config_libs_and_paths.cpp
+5
-14
No files found.
common/base_struct.cpp
View file @
c03abc0b
...
...
@@ -539,6 +539,7 @@ EDA_Rect& EDA_Rect::Inflate( int aDelta )
*/
{
Inflate
(
aDelta
,
aDelta
);
return
*
this
;
}
/**************************************************/
...
...
cvpcb/dialog_cvpcb_config.cpp
View file @
c03abc0b
...
...
@@ -229,20 +229,11 @@ void DIALOG_CVPCB_CONFIG::OnAddOrInsertLibClick( wxCommandEvent& event )
* because it preserve use of default libraries paths, when the path
* is a sub path of these default paths
*/
if
(
wxGetApp
().
GetLibraryPathList
().
Index
(
fn
.
GetPath
()
)
!=
wxNOT_FOUND
)
// Ok, trivial case
libfilename
=
fn
.
GetName
();
else
// not in the default, : see if this file is in a subpath:
{
libfilename
=
fn
.
GetPathWithSep
()
+
fn
.
GetName
();
for
(
unsigned
kk
=
0
;
kk
<
wxGetApp
().
GetLibraryPathList
().
GetCount
();
kk
++
)
{
if
(
fn
.
MakeRelativeTo
(
wxGetApp
().
GetLibraryPathList
()[
kk
]
)
)
{
libfilename
=
fn
.
GetPathWithSep
()
+
fn
.
GetName
();
break
;
}
}
}
libfilename
=
wxGetApp
().
ReturnFilenameWithRelativePathInLibPath
(
fn
.
GetFullPath
()
);
// Remove extension:
fn
=
libfilename
;
fn
.
SetExt
(
wxEmptyString
);
libfilename
=
fn
.
GetFullPath
();
//Add or insert new library name, if not already in list
if
(
list
->
FindString
(
libfilename
,
fn
.
IsCaseSensitive
()
)
==
wxNOT_FOUND
)
...
...
eeschema/annotate_dialog.rc
deleted
100644 → 0
View file @
4b2f33a9
#include "wx/msw/wx.rc"
eeschema/classes_body_items.cpp
View file @
c03abc0b
...
...
@@ -1247,7 +1247,7 @@ void LIB_SEGMENT::Draw( WinEDA_DrawPanel* aPanel, wxDC* aDC,
* bounding box calculation. */
#if 0
EDA_Rect bBox = GetBoundingBox();
bBox.Inflate( m_Width + 2
, m_Width + 2
);
bBox.Inflate( m_Width + 2 );
GRRect( &aPanel->m_ClipBox, aDC, bBox.GetOrigin().x, bBox.GetOrigin().y,
bBox.GetEnd().x, bBox.GetEnd().y, 0, LIGHTMAGENTA );
#endif
...
...
eeschema/dialog_eeschema_config.cpp
View file @
c03abc0b
...
...
@@ -242,20 +242,11 @@ void DIALOG_EESCHEMA_CONFIG::OnAddOrInsertLibClick( wxCommandEvent& event )
* because it preserve use of default libraries paths, when the path
* is a sub path of these default paths
*/
if
(
wxGetApp
().
GetLibraryPathList
().
Index
(
fn
.
GetPath
()
)
!=
wxNOT_FOUND
)
// Ok, trivial case
libfilename
=
fn
.
GetName
();
else
// not in the default, : see if this file is in a subpath:
{
libfilename
=
fn
.
GetPathWithSep
()
+
fn
.
GetName
();
for
(
unsigned
kk
=
0
;
kk
<
wxGetApp
().
GetLibraryPathList
().
GetCount
();
kk
++
)
{
if
(
fn
.
MakeRelativeTo
(
wxGetApp
().
GetLibraryPathList
()[
kk
]
)
)
{
libfilename
=
fn
.
GetPathWithSep
()
+
fn
.
GetName
();
break
;
}
}
}
libfilename
=
wxGetApp
().
ReturnFilenameWithRelativePathInLibPath
(
fn
.
GetFullPath
()
);
// Remove extension:
fn
=
libfilename
;
fn
.
SetExt
(
wxEmptyString
);
libfilename
=
fn
.
GetFullPath
();
//Add or insert new library name, if not already in list
if
(
m_ListLibr
->
FindString
(
libfilename
,
fn
.
IsCaseSensitive
()
)
==
wxNOT_FOUND
)
...
...
eeschema/libedit_onleftclick.cpp
View file @
c03abc0b
...
...
@@ -123,7 +123,10 @@ void WinEDA_LibeditFrame::OnLeftClick( wxDC* DC, const wxPoint& MousePos )
GetScreen
()
->
m_Curseur
);
}
if
(
DrawEntry
==
NULL
)
{
DisplayCmpDoc
();
break
;
}
SaveCopyInUndoList
(
m_component
);
if
(
DrawEntry
->
Type
()
==
COMPONENT_PIN_DRAW_TYPE
)
DeletePin
(
DC
,
m_component
,
(
LIB_PIN
*
)
DrawEntry
);
...
...
pcbnew/dialog_pcbnew_config_libs_and_paths.cpp
View file @
c03abc0b
...
...
@@ -206,20 +206,11 @@ void DIALOG_PCBNEW_CONFIG_LIBS::OnAddOrInsertLibClick( wxCommandEvent& event )
* because it preserve use of default libraries paths, when the
* path is a sub path of these default paths
*/
if
(
wxGetApp
().
GetLibraryPathList
().
Index
(
fn
.
GetPath
()
)
!=
wxNOT_FOUND
)
// Ok, trivial case
libfilename
=
fn
.
GetName
();
else
// not in the default, : see if this file is in a subpath:
{
libfilename
=
fn
.
GetPathWithSep
()
+
fn
.
GetName
();
for
(
unsigned
kk
=
0
;
kk
<
wxGetApp
().
GetLibraryPathList
().
GetCount
();
kk
++
)
{
if
(
fn
.
MakeRelativeTo
(
wxGetApp
().
GetLibraryPathList
()[
kk
]
)
)
{
libfilename
=
fn
.
GetPathWithSep
()
+
fn
.
GetName
();
break
;
}
}
}
libfilename
=
wxGetApp
().
ReturnFilenameWithRelativePathInLibPath
(
fn
.
GetFullPath
()
);
// Remove extension:
fn
=
libfilename
;
fn
.
SetExt
(
wxEmptyString
);
libfilename
=
fn
.
GetFullPath
();
//Add or insert new library name, if not already in list
if
(
m_ListLibr
->
FindString
(
libfilename
,
fn
.
IsCaseSensitive
()
)
==
wxNOT_FOUND
)
...
...
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