]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Regression: "Unknown" scalar bar title
authoreap <eap@opencascade.com>
Thu, 16 Jun 2016 10:08:40 +0000 (13:08 +0300)
committereap <eap@opencascade.com>
Thu, 16 Jun 2016 10:08:40 +0000 (13:08 +0300)
src/SMESHGUI/SMESHGUI.cxx

index 0e2f52983a2f7cf1405fc6bd53df8cfff3627590..ccf68d935d8cfee826001d29bb6105b7b84d96bf 100644 (file)
@@ -1653,8 +1653,8 @@ namespace
             SMESH::SMESH_IDSource_var anIDSrc = SMESH::SMESH_IDSource::_narrow( aObject );
             if ( !anIDSrc->_is_nil() ) {
               if ( SMESH_Actor *anActor = SMESH::FindActorByEntry( anIO->getEntry()) ) {
-                QString functorName = functorToString( anActor->GetFunctor() );
                 anActor->SetControlMode( aControl );
+                QString functorName = functorToString( anActor->GetFunctor() );
                 anActor->GetScalarBarActor()->SetTitle( functorName.toLatin1().constData() );
                 SMESH::RepaintCurrentView();
 #ifndef DISABLE_PLOT2DVIEWER