Skip to content

Commit

Permalink
fix null reference
Browse files Browse the repository at this point in the history
  • Loading branch information
etrombly committed Jun 29, 2020
1 parent 2c56e3c commit 2035e0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Path/Gui/ViewProviderPath.cpp
Expand Up @@ -120,10 +120,10 @@ class PathSelectionObserver: public Gui::SelectionObserver {
mat *= linkMat;
mat.inverse();
Base::Vector3d pt = mat*Base::Vector3d(msg.x,msg.y,msg.z);
const SbVec3f &ptTo = *vp->pcLineCoords->point.getValues(vp->pt0Index);
auto ptTo = vp->pcLineCoords->point.getValues(vp->pt0Index);
SbVec3f ptFrom(pt.x,pt.y,pt.z);
if(ptFrom != ptTo) {
vp->pcArrowTransform->pointAt(ptFrom,ptTo);
if(ptTo && ptFrom != *ptTo) {
vp->pcArrowTransform->pointAt(ptFrom,*ptTo);
setArrow(vp->pcArrowSwitch);
return;
}
Expand Down

0 comments on commit 2035e0c

Please sign in to comment.