Skip to content

Commit

Permalink
MMVII: fix "\\" interpreted as path separaton on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Meynard committed Feb 26, 2024
1 parent c98c1ce commit 539b1c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MMVII/src/Sensors/cPhotogrammetricProject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,9 @@ void cPhotogrammetricProject::SaveSensor(const cSensorImage & aSens) const
{
// We dont want to have different variant of the same image in a given folder
// so supress potentiel existing orientation of the same image
std::string aPat2Sup = mDPOrient.FullDirOut() + "Ori-.*-" + aSens.NameImage() + "\\." + GlobTaggedNameDefSerial() ;
// CM: Should be ...Image() + "\\." + Glob..., but '\' is a directory separator on Windows
// and SplitDirAndFile() called by RemovePatternFile() will do bad things in this case ...
std::string aPat2Sup = mDPOrient.FullDirOut() + "Ori-.*-" + aSens.NameImage() + "." + GlobTaggedNameDefSerial() ;
RemovePatternFile(aPat2Sup,false);

aSens.ToFile(mDPOrient.FullDirOut() + aSens.NameOriStd());
Expand Down

0 comments on commit 539b1c9

Please sign in to comment.