diff options
author | FormerLurker <hochgebe@gmail.com> | 2020-11-11 03:12:12 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2020-11-11 03:12:12 +0300 |
commit | b995df6e38d0185f32f06cac87e781249975b738 (patch) | |
tree | 96be6f1646911832b6139a2a24bb0d99f6358694 /ArcWelderConsole | |
parent | 2ce62496fc67d131d65bcfddb550156f6cd4c438 (diff) |
Fix overwrite source if source and target are the same file.
Diffstat (limited to 'ArcWelderConsole')
-rw-r--r-- | ArcWelderConsole/ArcWelderConsole.cpp | 4 | ||||
-rw-r--r-- | ArcWelderConsole/ArcWelderConsole.vcxproj | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ArcWelderConsole/ArcWelderConsole.cpp b/ArcWelderConsole/ArcWelderConsole.cpp index 0299028..babb8de 100644 --- a/ArcWelderConsole/ArcWelderConsole.cpp +++ b/ArcWelderConsole/ArcWelderConsole.cpp @@ -227,11 +227,11 @@ int main(int argc, char* argv[]) } // create a uuid with a tmp extension for the temporary file - - log_messages << "Source and target path are the same. The source file will be overwritten. Temporary file path: " << target_file_path; + log_messages << "Source and target path are the same. The source file will be overwritten. Temporary file path: " << temp_file_path; p_logger->log(0, INFO, log_messages.str()); log_messages.clear(); log_messages.str(""); + target_file_path = temp_file_path; } log_messages << "Processing Gcode\n"; log_messages << "\tSource File Path : " << source_file_path << "\n"; diff --git a/ArcWelderConsole/ArcWelderConsole.vcxproj b/ArcWelderConsole/ArcWelderConsole.vcxproj index 7ffa03a..1433a00 100644 --- a/ArcWelderConsole/ArcWelderConsole.vcxproj +++ b/ArcWelderConsole/ArcWelderConsole.vcxproj @@ -114,6 +114,7 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <LinkIncremental>false</LinkIncremental> <IncludePath>$(SolutionDir)\GcodeProcessorLib\;$(SolutionDir)\ArcWelder\;$(VC_IncludePath);$(WindowsSDK_IncludePath);$(SolutionDir)\TCLAP\</IncludePath> + <TargetName>ArcWelder</TargetName> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <LinkIncremental>false</LinkIncremental> |