]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Merge branch 'Dev_0.6.1' of newgeom:newgeom into Dev_0.6.1
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 26 Dec 2014 15:38:16 +0000 (18:38 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 26 Dec 2014 15:38:16 +0000 (18:38 +0300)
1  2 
src/XGUI/XGUI_Displayer.cpp

index 1927d19b838ff0e48f863b7da004c07872cb2b50,bf5a0516545685504f0a484595aa68553c742673..8be3d0bcaac9124868328fe86f6d46c7c3efb81f
@@@ -129,10 -131,13 +131,13 @@@ void XGUI_Displayer::display(ObjectPtr 
    Handle(AIS_InteractiveObject) anAISIO = theAIS->impl<Handle(AIS_InteractiveObject)>();
    if (!anAISIO.IsNull()) {
      myResult2AISObjectMap[theObject] = theAIS;
 -    bool aCanBeShaded = canBeShaded(anAISIO);
 +    bool aCanBeShaded = ::canBeShaded(anAISIO);
      // In order to avoid extra closing/opening context
-     if (aCanBeShaded)
+     SelectMgr_IndexedMapOfOwner aSelectedOwners;
+     if (aCanBeShaded) {
+       myWorkshop->selector()->selection()->selectedOwners(aSelectedOwners);
        closeLocalContexts(false);
+     }
      aContext->Display(anAISIO, false);
      qDebug("### Display %i", (long)anAISIO.Access());