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
bde2a0a1
Commit
bde2a0a1
authored
Jul 23, 2014
by
unknown
Committed by
jean-pierre charras
Jul 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fix issue for "one file per layer" option in "Export SVG file"
parent
1d378cfc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dialog_SVG_print.cpp
pcbnew/dialogs/dialog_SVG_print.cpp
+4
-4
No files found.
pcbnew/dialogs/dialog_SVG_print.cpp
View file @
bde2a0a1
...
...
@@ -279,7 +279,7 @@ void DIALOG_SVG_PRINT::ExportSVGFile( bool aOnlyOneFile )
if
(
!
EnsureOutputDirectory
(
&
outputDir
,
boardFilename
,
&
reporter
)
)
{
wxString
msg
=
wxString
::
Format
(
_
(
"Could not write plot files to folder
\"
%s
\"
."
),
_
(
"Could not write plot files to folder
'%s'
."
),
GetChars
(
outputDir
.
GetPath
()
)
);
DisplayError
(
this
,
msg
);
...
...
@@ -302,7 +302,7 @@ void DIALOG_SVG_PRINT::ExportSVGFile( bool aOnlyOneFile )
BuildPlotFileName
(
&
fn
,
outputDir
.
GetPath
(),
suffix
,
SVGFileExtension
);
m_printMaskLayer
=
aOnlyOneFile
?
LSET
(
layer
)
:
all_selected
;
m_printMaskLayer
=
aOnlyOneFile
?
all_selected
:
LSET
(
layer
)
;
if
(
m_PrintBoardEdgesCtrl
->
IsChecked
()
)
m_printMaskLayer
.
set
(
Edge_Cuts
);
...
...
@@ -310,13 +310,13 @@ void DIALOG_SVG_PRINT::ExportSVGFile( bool aOnlyOneFile )
if
(
CreateSVGFile
(
fn
.
GetFullPath
()
)
)
{
m_messagesBox
->
AppendText
(
wxString
::
Format
(
_
(
"Plot:
%s
OK
\n
"
),
GetChars
(
fn
.
GetFullPath
()
)
)
wxString
::
Format
(
_
(
"Plot:
'%s'
OK
\n
"
),
GetChars
(
fn
.
GetFullPath
()
)
)
);
}
else
// Error
{
m_messagesBox
->
AppendText
(
wxString
::
Format
(
_
(
"** Unable to create
%s
**
\n
"
),
GetChars
(
fn
.
GetFullPath
()
)
)
wxString
::
Format
(
_
(
"** Unable to create
'%s'
**
\n
"
),
GetChars
(
fn
.
GetFullPath
()
)
)
);
}
...
...
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