mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
CEA18933 : As before, when non managed version requested, ignore and take the latest
This commit is contained in:
parent
29fa6f3696
commit
a21c246418
@ -196,14 +196,14 @@ namespace MED
|
|||||||
}
|
}
|
||||||
med_int wantedMajor = MED_MAJOR_NUM;
|
med_int wantedMajor = MED_MAJOR_NUM;
|
||||||
med_int wantedMinor = MED_MINOR_NUM;
|
med_int wantedMinor = MED_MINOR_NUM;
|
||||||
if (isCreated)
|
// when non managed version of file is requested : ignore it and take the latest version
|
||||||
{
|
std::vector<int> versionsOK(GetMEDVersionsAppendCompatible());
|
||||||
if (theVersion > 0)
|
bool isVersionRequestedOK(std::find(versionsOK.begin(),versionsOK.end(),theVersion)!=versionsOK.end());
|
||||||
|
if (isCreated && isVersionRequestedOK)
|
||||||
{
|
{
|
||||||
wantedMajor = theVersion/10;
|
wantedMajor = theVersion/10;
|
||||||
wantedMinor = theVersion%10;
|
wantedMinor = theVersion%10;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return new MED::TWrapper(fileName, true, wantedMajor, wantedMinor);
|
return new MED::TWrapper(fileName, true, wantedMajor, wantedMinor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user