mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
Merge branch 'master' into V9_3_BR
This commit is contained in:
commit
58a7aa4445
@ -319,6 +319,8 @@ bool SMESH_File::getInts(std::vector<int>& ints)
|
|||||||
|
|
||||||
bool SMESH_File::openForWriting()
|
bool SMESH_File::openForWriting()
|
||||||
{
|
{
|
||||||
|
close();
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
std::wstring aName = Kernel_Utils::utf8_decode_s(_name);
|
std::wstring aName = Kernel_Utils::utf8_decode_s(_name);
|
||||||
|
@ -3283,9 +3283,9 @@ CORBA::Boolean SMESH_Mesh_i::HasDuplicatedGroupNamesMED()
|
|||||||
|
|
||||||
void SMESH_Mesh_i::PrepareForWriting (const char* file, bool overwrite)
|
void SMESH_Mesh_i::PrepareForWriting (const char* file, bool overwrite)
|
||||||
{
|
{
|
||||||
SMESH_File aFile( file );
|
SMESH_File aFile( file, false );
|
||||||
SMESH_Comment msg;
|
SMESH_Comment msg;
|
||||||
if (aFile.exists()) {
|
if ( aFile.exists() ) {
|
||||||
// existing filesystem node
|
// existing filesystem node
|
||||||
if ( !aFile.isDirectory() ) {
|
if ( !aFile.isDirectory() ) {
|
||||||
if ( aFile.openForWriting() ) {
|
if ( aFile.openForWriting() ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user