Salome HOME
Windows compatibility
authorana <ana@opencascade.com>
Wed, 14 Oct 2015 13:38:35 +0000 (16:38 +0300)
committerana <ana@opencascade.com>
Wed, 14 Oct 2015 13:38:35 +0000 (16:38 +0300)
src/SMESHGUI/SMESHGUI_PreVisualObj.cxx
src/SMESHGUI/SMESHGUI_SewingDlg.cxx
src/SMESH_I/SMESH_2smeshpy.cxx

index 3e05490da123b34c4cd4535924effe166d5d8277..8107a117b204bc28a671c63ac81dfd68aae310d8 100644 (file)
@@ -59,7 +59,7 @@ int SMESHGUI_PreVisualObj::GetElemDimension( const int theObjId )
 
 int SMESHGUI_PreVisualObj::GetNbEntities( const SMDSAbs_ElementType theType ) const
 {
-  myMesh->GetMeshInfo().NbElements( theType );
+  return myMesh->GetMeshInfo().NbElements( theType );
 }
 
 SMESH::SMESH_Mesh_ptr SMESHGUI_PreVisualObj::GetMeshServer()
index 3753dff1d9762c8b3037c729a259845adbe5dd61..4c8fd2580a680bc15744d7f50d5d3066aceff7a5 100644 (file)
@@ -907,7 +907,7 @@ void SMESHGUI_SewingDlg::onDetectClicked()
 
       QListWidgetItem * item = new QListWidgetItem( icon, groupText, ListCoincident );
       item->setData( GROUP_COLOR, groupColor );
-      item->setData( GROUP_INDEX, i );
+      item->setData( GROUP_INDEX, (long)i );
     }
   }
   myBusy = false;
index e86fa26bb67156e52528e76c3d1adf092c2a9481..3ea0f6acdac068268bb55b99972634357c8fae8b 100644 (file)
@@ -3585,7 +3585,9 @@ void _pyCommand::SetBegPos( int thePartIndex, int thePosition )
 TCollection_AsciiString _pyCommand::GetIndentation()
 {
   int end = 1;
-  while ( end <= Length() && isblank( myString.Value( end )))
+  //while ( end <= Length() && isblank( myString.Value( end )))
+  //ANA: isblank() function isn't provided in VC2010 compiler
+  while ( end <= Length() && ( myString.Value( end ) == ' ' || myString.Value( end ) == '\t') )
     ++end;
   return ( end == 1 ) ? _AString("") : myString.SubString( 1, end - 1 );
 }