Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
Plugin-PropertyVis
Commits
e45d7c5f
Commit
e45d7c5f
authored
Dec 23, 2017
by
Martin Heistermann
Browse files
Fix crash when currentlySelectedIndices is empty.
Not sure how i triggered this, but found the issue in a core dump.
parent
37acdd63
Changes
1
Hide whitespace changes
Inline
Side-by-side
OpenMesh/OMPropertyModelT.cc
View file @
e45d7c5f
...
...
@@ -389,7 +389,7 @@ void OMPropertyModel<MeshT>::mouseEvent(QMouseEvent* _event)
BaseObjectData
*
object
;
PluginFunctions
::
getPickedObject
(
node_idx
,
object
);
if
(
object
->
id
()
==
objectID_
)
if
(
object
->
id
()
==
objectID_
&&
!
currentlySelectedIndices
.
empty
()
)
{
OMPropertyVisualizer
<
MeshT
>*
viz
=
dynamic_cast
<
OMPropertyVisualizer
<
MeshT
>*>
(
propertyVisualizers
[
currentlySelectedIndices
.
first
().
row
()]
);
unsigned
int
primitiveId
=
viz
->
getClosestPrimitiveId
(
face_idx
,
hit_point
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment