File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 8
8
9
9
bool ExtractSingleModel (std::string& fname, StringSet& failedPaths)
10
10
{
11
- char * name = GetPlainName ((char *)fname.c_str ());
12
- char * ext = GetExtension (name);
11
+ char * ext = GetExtension (GetPlainName ((char *)fname.c_str ()));
13
12
14
13
// < 3.1.0 ADT MMDX section store filename.mdx filenames for corresponded .m2 file
15
14
if (!strcmp (ext, " .mdx" ))
@@ -21,14 +20,15 @@ bool ExtractSingleModel(std::string& fname, StringSet& failedPaths)
21
20
// >= 3.1.0 ADT MMDX section store filename.m2 filenames for corresponded .m2 file
22
21
// nothing do
23
22
24
- std::string output (szWorkDirWmo);
23
+ std::string output (szWorkDirWmo); // Stores output filename (possible changed)
25
24
output += " /" ;
26
- output += name;
25
+ output += GetPlainName (fname.c_str ());
26
+
27
27
28
28
if (FileExists (output.c_str ()))
29
29
return true ;
30
30
31
- Model mdl (fname);
31
+ Model mdl (fname); // Possible changed fname
32
32
if (!mdl.open (failedPaths))
33
33
return false ;
34
34
Original file line number Diff line number Diff line change 1
1
#ifndef __REVISION_NR_H__
2
2
#define __REVISION_NR_H__
3
- #define REVISION_NR "1999 "
3
+ #define REVISION_NR "2000 "
4
4
#endif // __REVISION_NR_H__
You can’t perform that action at this time.
0 commit comments