]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fixed wild casting from pointer to bool.
authorabn <adrien.bruneton@cea.fr>
Fri, 6 Nov 2015 15:13:51 +0000 (16:13 +0100)
committerabn <adrien.bruneton@cea.fr>
Fri, 6 Nov 2015 15:13:51 +0000 (16:13 +0100)
Surprising this has worked so far ...

src/SalomeApp/SalomeApp_StudyPropertiesDlg.cxx

index 8c5e8db0353e538a8751983672a4d2978c162830..1e2f8252449a7d6f4676580069ec38686a1864e2 100644 (file)
@@ -173,7 +173,7 @@ SalomeApp_StudyPropertiesDlg::~SalomeApp_StudyPropertiesDlg()
 */
 void SalomeApp_StudyPropertiesDlg::initData()
 {
-  bool hasData = myStudyDoc;
+  bool hasData = (myStudyDoc != NULL);
   _PTR(AttributeStudyProperties) propAttr;
   if (hasData)
     propAttr = myStudyDoc->GetProperties();