diff --git a/plugins/syntheticannotation/src/SyntheticAnnotation.cpp b/plugins/syntheticannotation/src/SyntheticAnnotation.cpp index afa14d8e7..513537f44 100644 --- a/plugins/syntheticannotation/src/SyntheticAnnotation.cpp +++ b/plugins/syntheticannotation/src/SyntheticAnnotation.cpp @@ -270,8 +270,10 @@ void SyntheticAnnotation::render( const char* outputdir ) { } //check that output directory exists, if not create it + std::string slash = "/"; #ifdef _WIN32 std::replace(odir.begin(), odir.end(), '/', '\\'); + slash = "\\"; #endif bool dir = std::filesystem::create_directory(odir); if (!dir && !std::filesystem::exists(odir)) { @@ -281,10 +283,6 @@ void SyntheticAnnotation::render( const char* outputdir ) { //std::string viewdir; for( int d=0; d