From: ouv Date: Fri, 27 Jun 2008 13:38:24 +0000 (+0000) Subject: Minor fix X-Git-Tag: TG_VISU2008_14_07_08~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fdbb920901da20868dc6ff012ab7db68f6cecdc3;p=modules%2Fvisu.git Minor fix --- diff --git a/src/VISUGUI/VisuGUI_FindPane.cxx b/src/VISUGUI/VisuGUI_FindPane.cxx index f9df959e..61b436eb 100644 --- a/src/VISUGUI/VisuGUI_FindPane.cxx +++ b/src/VISUGUI/VisuGUI_FindPane.cxx @@ -32,6 +32,7 @@ #include "VISU_IDMapper.hxx" #include "VISU_GaussPointsPL.hxx" +#include "VISU_ConvertorUtils.hxx" #include "SUIT_MessageBox.h" #include "SUIT_ResourceMgr.h" @@ -208,18 +209,19 @@ void VisuGUI_FindPane::onApply() TFindId anId( -1, -1 ); if( mySelectionMode == NodeSelection ) - anId.first = myActor->GetNodeObjId( aVTKId ); + anId.first = VISU::GetNodeObjID( aDataSet, aVTKId ); else if( mySelectionMode == CellSelection ) - anId.first = myActor->GetElemObjId( aVTKId ); + anId.first = VISU::GetElemObjID( aDataSet, aVTKId ); else if( mySelectionMode == GaussPointSelection ) { if( VISU_GaussPtsAct* aGaussPtsAct = dynamic_cast( myActor ) ) { - VISU::TGaussPointID aGaussPointID = aGaussPtsAct->GetGaussPointsPL()->GetObjID( aVTKId + 1 ); + VISU::TGaussPointID aGaussPointID = aGaussPtsAct->GetGaussPointsPL()->GetObjID( aVTKId ); anId.first = aGaussPointID.first; anId.second = aGaussPointID.second; } } + //printf( "(%d) <%d - %d> %f\n", aVTKId, anId.first, anId.second, aValue ); if( anId.first < 0 || anId.second < 0 && mySelectionMode == GaussPointSelection )