]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Partial fix for Bug IPAL17732
authorapo <apo@opencascade.com>
Sun, 25 Nov 2007 08:05:19 +0000 (08:05 +0000)
committerapo <apo@opencascade.com>
Sun, 25 Nov 2007 08:05:19 +0000 (08:05 +0000)
   TC71: REGR: Names of table and first column are wrong

src/VISU_I/VISU_CutLines_i.cc

index 16e05f9437983c8b63c73d4b776dc2a55ecbb407..06f6f87a518ac5e9fa870b70806cc6ee4412385e 100644 (file)
@@ -644,10 +644,9 @@ VISU::CutLines_i
     typedef map<int,TXYMap> TXYMapCont;
     typedef map<long,long> TLineIdCont;
     
-    QString aTitle;
-    aTitle.sprintf("%s",GetCTitle().c_str());
+    QString aTitle( GetScalarBarTitle().c_str() );
     aTitle = aTitle.simplifyWhiteSpace();
-    aTableOfReal->SetTitle(aTitle.latin1());
+    aTableOfReal->SetTitle( aTitle.latin1() );
     
     int iLineEnd = myCutLinesPL->GetAppendPolyData()->GetNumberOfInputConnections(0);
     if(MYDEBUG) MESSAGE("CutPlanes_i::BuildTableOfReal iLineEnd = "<<iLineEnd);