Crash when deleting all annotations by selecting all annotations and clicking "Remove current entry" button (minus sign)
Steps to reproduce
- Load
disk_out_ref.ex2
- Color by
GlobalElementId
- Open Color Map Editor
- Click Interpret Values as Categories
- Add the following Value-Annotation pairs (1, 1), (2, 2), (3, 3), (4, 4), (5, 5)
- Click on the first annotation
- Shift-click on the last annotation
- Click the tool button on the right with the minus sign
ParaView will crash.
Relevant portion of the stack trace:
0 libsystem_kernel.dylib 0x00007fff8cf83f06 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff9d1504ec pthread_kill + 90
2 libsystem_c.dylib 0x00007fff910866df abort + 129
3 libsystem_malloc.dylib 0x00007fff9b614041 free + 425
4 libvtkpqApplicationComponents-pv5.5.1.dylib 0x000000010af5a04f pqColorAnnotationsPropertyWidget::removeAnnotation() + 1231
5 org.qt-project.QtCore 0x00000001128992e1 QMetaObject::activate(QObject*, int, int, void**) + 913
6 org.qt-project.QtWidgets 0x0000000111cc3d70 QAbstractButtonPrivate::emitClicked() + 112
7 org.qt-project.QtWidgets 0x0000000111cc3bf4 QAbstractButtonPrivate::click() + 260
8 org.qt-project.QtWidgets 0x0000000111cc4cae QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 270
9 org.qt-project.QtWidgets 0x0000000111d9a91f QToolButton::mouseReleaseEvent(QMouseEvent*) + 15
10 org.qt-project.QtWidgets 0x0000000111c150b1 QWidget::event(QEvent*) + 1681
11 org.qt-project.QtWidgets 0x0000000111cc49ff QAbstractButton::event(QEvent*) + 175
12 org.qt-project.QtWidgets 0x0000000111d9aed3 QToolButton::event(QEvent*) + 323