0017460: Error in StdSelect_BRepOwner::Clear
authorKGV <>
Fri, 16 Sep 2011 12:44:35 +0000 (12:44 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:30:15 +0000 (19:30 +0400)
src/StdSelect/StdSelect_BRepOwner.cxx

index f4f9a23..7e3bd1b 100755 (executable)
@@ -139,7 +139,7 @@ void StdSelect_BRepOwner::Clear(const Handle(PrsMgr_PresentationManager)& PM,
 #else
   Standard_Integer M = (myCurMode==-1) ? aMode:myCurMode;
 #endif
-  if(myPrsSh.IsNull())
+  if (!myPrsSh.IsNull())
     PM->Clear(myPrsSh,M);
   myPrsSh.Nullify();
 }
@@ -157,7 +157,3 @@ void StdSelect_BRepOwner::ResetLocation()
   if(!myPrsSh.IsNull())
     myPrsSh.Nullify(); 
 }
-
-
-
-