projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
189f85a
)
0026153: Draw Harness, ViewerTest - "verase" does not remove selection highlight...
author
isk
<isk@opencascade.com>
Thu, 14 May 2015 14:04:15 +0000
(17:04 +0300)
committer
bugmaster
<bugmaster@opencascade.com>
Wed, 10 Jun 2015 08:00:44 +0000
(11:00 +0300)
src/AIS/AIS_InteractiveContext.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/AIS/AIS_InteractiveContext.cxx
b/src/AIS/AIS_InteractiveContext.cxx
index
ef088df
..
2c58be9
100644
(file)
--- a/
src/AIS/AIS_InteractiveContext.cxx
+++ b/
src/AIS/AIS_InteractiveContext.cxx
@@
-2333,9
+2333,16
@@
void AIS_InteractiveContext::EraseGlobal (const Handle(AIS_InteractiveObject)& t
for (TColStd_ListIteratorOfListOfInteger aDispModeIter (aStatus->DisplayedModes()); aDispModeIter.More(); aDispModeIter.Next())
{
for (TColStd_ListIteratorOfListOfInteger aDispModeIter (aStatus->DisplayedModes()); aDispModeIter.More(); aDispModeIter.Next())
{
- if (
myMainPM->IsHighlighted (theIObj, aDispModeIter.Value()
))
+ if (
aStatus->IsHilighted(
))
{
{
- myMainPM->Unhighlight (theIObj, aDispModeIter.Value());
+ if (IsCurrent (theIObj))
+ {
+ AddOrRemoveCurrentObject (theIObj, Standard_False);
+ }
+ else if (myMainPM->IsHighlighted (theIObj, aDispModeIter.Value()))
+ {
+ myMainPM->Unhighlight (theIObj, aDispModeIter.Value());
+ }
}
myMainPM->SetVisibility (theIObj, aDispModeIter.Value(), Standard_False);
}
myMainPM->SetVisibility (theIObj, aDispModeIter.Value(), Standard_False);