From: kgv Date: Mon, 26 Sep 2016 08:38:18 +0000 (+0300) Subject: 0027883: Visualization - AIS_InteractiveContext::IsDisplayed() does not return displa... X-Git-Tag: V7_1_0_beta~107 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=b2bafb33a95288e7a2bcfe61de1d152e9827a3c7;p=occt-copy.git 0027883: Visualization - AIS_InteractiveContext::IsDisplayed() does not return displayed state for specified Display Mode --- diff --git a/src/AIS/AIS_InteractiveContext.cxx b/src/AIS/AIS_InteractiveContext.cxx index a15351d91a..e11557ad30 100644 --- a/src/AIS/AIS_InteractiveContext.cxx +++ b/src/AIS/AIS_InteractiveContext.cxx @@ -1058,7 +1058,7 @@ Standard_Boolean AIS_InteractiveContext::IsDisplayed (const Handle(AIS_Interacti { Handle(AIS_GlobalStatus) aStatus = myObjects (theIObj); if (aStatus->GraphicStatus() == AIS_DS_Displayed - && theIObj->DisplayMode() == theMode) + && aStatus->DisplayMode() == theMode) { return Standard_True; } @@ -1541,6 +1541,7 @@ void AIS_InteractiveContext::SetDisplayMode (const Handle(AIS_InteractiveObject) Handle(AIS_GlobalStatus) aStatus = myObjects (theIObj); if (aStatus->GraphicStatus() != AIS_DS_Displayed) { + aStatus->SetDisplayMode (theMode); theIObj->SetDisplayMode (theMode); return; }