From ba17c064cff837eb93f8f6de2ddf8d49157a4dac Mon Sep 17 00:00:00 2001 From: Kevin Larke Date: Fri, 24 Jul 2015 10:46:31 -0700 Subject: [PATCH] cmGr.c : Changed mouse drag logic in _cmGrEventMsMove(). --- cmGr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmGr.c b/cmGr.c index 3bfaebb..aaa6c07 100644 --- a/cmGr.c +++ b/cmGr.c @@ -2316,7 +2316,7 @@ cmGrObj_t* _cmGrEventMsDrag( cmGr_t* p, unsigned evtFlags, cmGrKeyCodeId_t key, bool fl = false; cmGrObj_t* op = _cmGrFindObjRec(p, p->rootObj, evtFlags, px, py, gx, gy ); - if( op != NULL && op->parent != NULL ) + if( op != NULL && p->msDnObj != NULL && p->msDnObj->parent != NULL ) { // set the current virtual point _cmGrXY_PtoV(p, p->msDnObj->parent, px, py, &p->msVPt );