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 0e2f529..ccf68d9 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