From: asl Date: Tue, 17 Nov 2015 08:50:34 +0000 (+0300) Subject: patch on regression in selection mode activation X-Git-Tag: v1.5~29^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e3b21078a339ef347581b344cbde209ab33654d8;p=modules%2Fhydro.git patch on regression in selection mode activation --- diff --git a/src/HYDROGUI/HYDROGUI_LandCoverMapOp.cxx b/src/HYDROGUI/HYDROGUI_LandCoverMapOp.cxx index cb073ade..321a4e19 100644 --- a/src/HYDROGUI/HYDROGUI_LandCoverMapOp.cxx +++ b/src/HYDROGUI/HYDROGUI_LandCoverMapOp.cxx @@ -440,11 +440,11 @@ void HYDROGUI_LandCoverMapOp::onCreatePreview() if ( aViewManager && myPreviewPrs && !myEditedObject.IsNull() ) { - myPreviewPrs->update( false, false ); if ( myOperationId == RemoveLandCoverId || myOperationId == MergeLandCoverId || myOperationId == ChangeLandCoverTypeId ) myPreviewPrs->setSelectionMode( AIS_Shape::SelectionMode( TopAbs_FACE ) ); + myPreviewPrs->update( false, false ); } module()->update( UF_OCCViewer | UF_FitAll );