]> OCCT Git - occt-copy.git/commit
0028310: Visualization - crash on iteration through detected interactive objects
authorapl <apl@opencascade.com>
Mon, 16 Jan 2017 15:57:22 +0000 (18:57 +0300)
committerapl <apl@opencascade.com>
Mon, 16 Jan 2017 15:57:22 +0000 (18:57 +0300)
commit7c49995584fac886477626d48934ea17f26bb037
treecb2077655fdfbbe0e0b123df396f8309148f57f8
parent89aebdea8d6f4d15cfc50e9458cd8e2e25022326
0028310: Visualization - crash on iteration through detected interactive objects

AIS_InteractiveContext::Remove (anIObj, ...) removes object from sequence of detected owners.
Therefore further iteration on detected will not require updating this list with ::MoveTo().
Additional modification includes incrementing properly the iterator of CurrentDetectedObject
and resets iterator of Highlighted detected objects, because nothing is really highlighted after that.
src/AIS/AIS_InteractiveContext.cxx
src/QABugs/QABugs_19.cxx
tests/bugs/vis/bug28310 [new file with mode: 0644]