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
74cc5a75
Commit
74cc5a75
authored
May 11, 2010
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Bug #578532, document and embellish QuoteFullPath()
parent
d9c42e27
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
gestfich.cpp
common/gestfich.cpp
+1
-1
schframe.cpp
eeschema/schframe.cpp
+6
-3
gestfich.h
include/gestfich.h
+4
-2
No files found.
common/gestfich.cpp
View file @
74cc5a75
...
...
@@ -685,5 +685,5 @@ void OpenFile( const wxString& file )
wxString
QuoteFullPath
(
wxFileName
&
fn
,
wxPathFormat
format
)
{
return
wxT
(
"
\"
"
)
+
fn
.
GetFullPath
()
+
wxT
(
"
\"
"
);
return
wxT
(
"
\"
"
)
+
fn
.
GetFullPath
(
format
)
+
wxT
(
"
\"
"
);
}
eeschema/schframe.cpp
View file @
74cc5a75
...
...
@@ -458,7 +458,7 @@ wxString WinEDA_SchematicFrame::GetUniqueFilenameForCurrentSheet()
#else
fn
.
ClearExt
();
wxString
filename
=
fn
.
GetFullPath
();
if
(
(
filename
.
Len
()
+
m_CurrentSheet
->
PathHumanReadable
().
Len
()
)
<
80
)
if
(
(
filename
.
Len
()
+
m_CurrentSheet
->
PathHumanReadable
().
Len
()
)
<
80
)
#endif
{
...
...
@@ -702,8 +702,11 @@ void WinEDA_SchematicFrame::OnOpenPcbnew( wxCommandEvent& event )
if
(
fn
.
IsOk
()
)
{
fn
.
ClearExt
();
ExecuteFile
(
this
,
PCBNEW_EXE
,
QuoteFullPath
(
fn
)
);
fn
.
SetExt
(
BoardFileExtension
);
wxString
filename
=
QuoteFullPath
(
fn
);
ExecuteFile
(
this
,
PCBNEW_EXE
,
filename
);
}
else
ExecuteFile
(
this
,
PCBNEW_EXE
);
...
...
include/gestfich.h
View file @
74cc5a75
...
...
@@ -77,8 +77,10 @@ wxString FindKicadFile( const wxString& shortname );
* Quote return value of wxFileName::GetFullPath().
*
* This allows file name paths with spaces to be used as parameters to
* ProcessExecute function calls. This is a cheap and dirty hack and
* should probably should be done in a class derived from wxFileName.
* ProcessExecute function calls.
* @param fn is the filename to wrap
* @param format if provided, can be used to transform the nature of the
* wrapped filename to another platform.
*/
extern
wxString
QuoteFullPath
(
wxFileName
&
fn
,
wxPathFormat
format
=
wxPATH_NATIVE
);
...
...
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