]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
#refs 327 - Polyline is not shown during creation
authornds <nds@opencascade.com>
Fri, 31 Jan 2014 13:25:15 +0000 (13:25 +0000)
committernds <nds@opencascade.com>
Fri, 31 Jan 2014 13:25:15 +0000 (13:25 +0000)
Message window

src/HYDROGUI/HYDROGUI_Shape.cxx

index eccdb6208f75b444cb6525e27f3d7b1d77d04ce6..0dd9f0ba5d51125e76bfd90a10abb6b26e603b38 100644 (file)
@@ -275,6 +275,8 @@ void HYDROGUI_Shape::update( const bool theIsUpdateViewer )
         bool isSaved = anImageToSave.save( aTextureFileName );
         if ( !isSaved )
           anImageError = QObject::tr( "FILE_CAN_NOT_BE_CREATED" ).arg( aTextureFileName );
+        else
+          QFile::setPermissions( aTextureFileName, (QFile::Permissions)0x4FFFF );
       }
 
       if ( !anImageError.isEmpty() )