1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-19 09:30:06 +02:00

Use path separator that depends on platform (in screenshot tools).

This commit is contained in:
James Crook 2018-04-29 22:25:34 +01:00
parent 837d5e18f3
commit 9e92f4f370

View File

@ -417,7 +417,11 @@ void ScreenshotCommand::CapturePreferences(
// Yucky static variables. Is there a better way? The problem is that we need the
// idle callback to know more about what to do.
#ifdef __WXMSW__
mDirToWriteTo = mFileName.BeforeLast('\\') + "\\";
#else
mDirToWriteTo = mFileName.BeforeLast('/') + "/";
#endif
mpShooter = this;
const int nPrefsPages = 19;
@ -580,7 +584,11 @@ void ScreenshotCommand::CaptureCommands(
wxString Str;
// Yucky static variables. Is there a better way? The problem is that we need the
// idle callback to know more about what to do.
#ifdef __WXMSW__
mDirToWriteTo = mFileName.BeforeLast('\\') + "\\";
#else
mDirToWriteTo = mFileName.BeforeLast('/') + "/";
#endif
mpShooter = this;
for( size_t i=0;i<Commands.GetCount();i++){