From fdbb920901da20868dc6ff012ab7db68f6cecdc3 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 27 Jun 2008 13:38:24 +0000 Subject: [PATCH] Minor fix --- src/VISUGUI/VisuGUI_FindPane.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 ) -- 2.39.2