From: vsr Date: Thu, 9 Apr 2015 06:10:40 +0000 (+0300) Subject: OCCT dev compatibility X-Git-Tag: V7_6_0b1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=511a69cc24f76442075d46b0e2e464e043b8a5c9;p=modules%2Fhexablock.git OCCT dev compatibility --- diff --git a/src/HEXABLOCKGUI/HEXABLOCKGUI_SalomeTools.cxx b/src/HEXABLOCKGUI/HEXABLOCKGUI_SalomeTools.cxx index 2505c56..5dedbd8 100644 --- a/src/HEXABLOCKGUI/HEXABLOCKGUI_SalomeTools.cxx +++ b/src/HEXABLOCKGUI/HEXABLOCKGUI_SalomeTools.cxx @@ -28,7 +28,7 @@ #include #include - +#include #include @@ -175,7 +175,14 @@ namespace GUI Handle(SelectMgr_Selection) sel = theObj->Selection( m ); for ( sel->Init(); sel->More(); sel->Next() ) { +#if OCC_VERSION_LARGE > 0x06080100 + const SelectMgr_HSensitiveEntity aHSenEntity = sel->Sensitive(); + if ( aHSenEntity.IsNull() ) + continue; + Handle(SelectBasics_SensitiveEntity) entity = aHSenEntity->BaseSensitive(); +#else Handle(SelectBasics_SensitiveEntity) entity = sel->Sensitive(); +#endif if ( entity.IsNull() ) continue;