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
50706777
Commit
50706777
authored
Jan 30, 2011
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kicad: fix 2 issues when a project path or a file has spaces in name.
parent
bf5c8f55
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
files-io.cpp
kicad/files-io.cpp
+3
-1
mainframe.cpp
kicad/mainframe.cpp
+6
-3
No files found.
kicad/files-io.cpp
View file @
50706777
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#include "bitmaps.h"
#include "bitmaps.h"
#include "confirm.h"
#include "confirm.h"
#include "gestfich.h"
#include "gestfich.h"
#include "macros.h"
#include "kicad.h"
#include "kicad.h"
#include "prjconfig.h"
#include "prjconfig.h"
...
@@ -168,7 +169,8 @@ void WinEDA_MainFrame::OnArchiveFiles( wxCommandEvent& event )
...
@@ -168,7 +169,8 @@ void WinEDA_MainFrame::OnArchiveFiles( wxCommandEvent& event )
if
(
ExecuteFile
(
this
,
ZIPPER
,
cmd
)
>=
0
)
if
(
ExecuteFile
(
this
,
ZIPPER
,
cmd
)
>=
0
)
{
{
wxString
msg
;
wxString
msg
;
msg
.
Printf
(
_
(
"
\n
Create Zip Archive <%s>"
),
zip
.
GetFullName
().
GetData
()
);
wxString
filename
=
QuoteFullPath
(
zip
);
msg
.
Printf
(
_
(
"
\n
Zip archive <%s> created"
),
GetChars
(
filename
)
);
PrintMsg
(
msg
);
PrintMsg
(
msg
);
PrintMsg
(
wxT
(
"
\n
** end **
\n
"
)
);
PrintMsg
(
wxT
(
"
\n
** end **
\n
"
)
);
}
}
...
...
kicad/mainframe.cpp
View file @
50706777
...
@@ -207,9 +207,10 @@ void WinEDA_MainFrame::OnRunEeschema( wxCommandEvent& event )
...
@@ -207,9 +207,10 @@ void WinEDA_MainFrame::OnRunEeschema( wxCommandEvent& event )
void
WinEDA_MainFrame
::
OnRunGerbview
(
wxCommandEvent
&
event
)
void
WinEDA_MainFrame
::
OnRunGerbview
(
wxCommandEvent
&
event
)
{
{
wxFileName
fn
(
m_ProjectFileName
);
wxFileName
fn
(
m_ProjectFileName
);
wxString
path
=
wxT
(
"
\"
"
);
path
+=
fn
.
GetPath
(
wxPATH_GET_SEPARATOR
|
wxPATH_GET_VOLUME
)
+
wxT
(
"
\"
"
);
ExecuteFile
(
this
,
GERBVIEW_EXE
,
ExecuteFile
(
this
,
GERBVIEW_EXE
,
path
);
fn
.
GetPath
(
wxPATH_GET_SEPARATOR
|
wxPATH_GET_VOLUME
)
);
}
}
...
@@ -238,8 +239,10 @@ void WinEDA_MainFrame::OnOpenFileInTextEditor( wxCommandEvent& event )
...
@@ -238,8 +239,10 @@ void WinEDA_MainFrame::OnOpenFileInTextEditor( wxCommandEvent& event )
if
(
dlg
.
ShowModal
()
==
wxID_CANCEL
)
if
(
dlg
.
ShowModal
()
==
wxID_CANCEL
)
return
;
return
;
wxString
filename
=
wxT
(
"
\"
"
);
filename
+=
dlg
.
GetPath
()
+
wxT
(
"
\"
"
);
if
(
!
dlg
.
GetPath
().
IsEmpty
()
&&
!
wxGetApp
().
GetEditorName
().
IsEmpty
()
)
if
(
!
dlg
.
GetPath
().
IsEmpty
()
&&
!
wxGetApp
().
GetEditorName
().
IsEmpty
()
)
ExecuteFile
(
this
,
wxGetApp
().
GetEditorName
(),
dlg
.
GetPath
()
);
ExecuteFile
(
this
,
wxGetApp
().
GetEditorName
(),
filename
);
}
}
...
...
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