]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL19582 : crash on apply
authorasl <asl@opencascade.com>
Thu, 17 Apr 2008 11:33:07 +0000 (11:33 +0000)
committerasl <asl@opencascade.com>
Thu, 17 Apr 2008 11:33:07 +0000 (11:33 +0000)
src/SMESHGUI/SMESHGUI_FilterDlg.cxx

index 4dadd0db55d212ba33f1af947b9c4256b51abecc..e3a58cdff882ebdcf35a112455e13dc7ccf15484 100755 (executable)
@@ -1004,9 +1004,9 @@ void SMESHGUI_FilterTable::GetCriterion (const int                 theRow,
   }
   else
   {
-    theCriterion.ThresholdStr = aTable->text(theRow, 2).toLatin1().data();
+    theCriterion.ThresholdStr = CORBA::string_dup( aTable->text(theRow, 2).toLatin1().constData() );
     if ( aCriterionType != SMESH::FT_RangeOfIds )
-      theCriterion.ThresholdID = aTable->text( theRow, 5 ).toLatin1().data();
+      theCriterion.ThresholdID = CORBA::string_dup( aTable->text( theRow, 5 ).toLatin1().constData() );
   }
 
   QTableWidgetItem* anItem = aTable->item(theRow, 0);