Bug IPAL21435 - TC5.1.3: incorrect mapping of the object from imported UNV file in the 3D Viewer

This commit is contained in:
ouv 2009-10-30 12:46:37 +00:00
parent bfe976c58e
commit ad1014d43c
3 changed files with 18 additions and 0 deletions

View File

@ -49,6 +49,7 @@ DriverUNV_R_SMDS_Mesh::~DriverUNV_R_SMDS_Mesh()
Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform()
{
UNV::Localizer loc;
Status aResult = DRS_OK;
std::ifstream in_stream(myFile.c_str());
try{

View File

@ -57,6 +57,7 @@ namespace{
Driver_Mesh::Status DriverUNV_W_SMDS_Mesh::Perform()
{
UNV::Localizer loc;
Status aResult = DRS_OK;
std::ofstream out_stream(myFile.c_str());
try{

View File

@ -35,6 +35,22 @@
namespace UNV{
using namespace std;
class MESHDRIVERUNV_EXPORT Localizer
{
public:
Localizer()
{
myCurLocale = setlocale(LC_NUMERIC, 0);
setlocale(LC_NUMERIC, "C");
}
~Localizer()
{
setlocale(LC_NUMERIC, myCurLocale.c_str());
}
private:
std::string myCurLocale;
};
class MESHDRIVERUNV_EXPORT PrefixPrinter{
static int myCounter;
public: