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
58b5da01
Commit
58b5da01
authored
Apr 06, 2010
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug 2982182 PCBNew File - Revert function don't work.
parent
04a18c10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
GUI_Translation_HOWTO.odt
Documentation/GUI_Translation_HOWTO.odt
+0
-0
GUI_Translation_HOWTO.pdf
Documentation/GUI_Translation_HOWTO.pdf
+0
-0
files.cpp
pcbnew/files.cpp
+6
-4
No files found.
Documentation/GUI_Translation_HOWTO.odt
View file @
58b5da01
No preview for this file type
Documentation/GUI_Translation_HOWTO.pdf
View file @
58b5da01
No preview for this file type
pcbnew/files.cpp
View file @
58b5da01
...
...
@@ -13,6 +13,7 @@
#include "protos.h"
#include "pcbnew_id.h"
#define BACKUP_FILE_EXT wxT( "000" )
void
WinEDA_PcbFrame
::
OnFileHistory
(
wxCommandEvent
&
event
)
{
...
...
@@ -63,7 +64,7 @@ void WinEDA_PcbFrame::Files_io( wxCommandEvent& event )
else
{
fn
=
GetScreen
()
->
m_FileName
;
fn
.
SetExt
(
wxT
(
"000"
)
);
fn
.
SetExt
(
BACKUP_FILE_EXT
);
}
if
(
!
fn
.
FileExists
()
)
...
...
@@ -333,15 +334,16 @@ bool WinEDA_PcbFrame::SavePcbFile( const wxString& FileName )
/* Get the backup file name */
backupFileName
=
pcbFileName
;
backupFileName
.
SetExt
(
wxT
(
"000"
)
);
backupFileName
.
SetExt
(
BACKUP_FILE_EXT
);
/* If an old backup file exists, delete it.
if an old board file existes, rename it to the backup file name
*/
if
(
backup
FileName
.
FileExists
()
)
if
(
pcb
FileName
.
FileExists
()
)
{
/* rename the "old" file" from xxx.brd to xxx.000 */
wxRemoveFile
(
backupFileName
.
GetFullPath
()
);
/* Remove the old file xxx.000 (if exists) */
if
(
backupFileName
.
FileExists
()
)
/* Remove the old file xxx.000 (if exists) */
wxRemoveFile
(
backupFileName
.
GetFullPath
()
);
if
(
!
wxRenameFile
(
pcbFileName
.
GetFullPath
(),
backupFileName
.
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