Browse Source

cmGr.c : Changed mouse drag logic in _cmGrEventMsMove().

master
Kevin Larke 8 years ago
parent
commit
ba17c064cf
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cmGr.c

+ 1
- 1
cmGr.c View File

@@ -2316,7 +2316,7 @@ cmGrObj_t*  _cmGrEventMsDrag( cmGr_t* p, unsigned evtFlags, cmGrKeyCodeId_t key,
2316 2316
   bool       fl = false;
2317 2317
   cmGrObj_t* op = _cmGrFindObjRec(p, p->rootObj, evtFlags, px, py, gx, gy );
2318 2318
 
2319
-  if( op != NULL && op->parent != NULL )
2319
+  if( op != NULL && p->msDnObj != NULL && p->msDnObj->parent != NULL )
2320 2320
   {
2321 2321
     // set the current virtual point
2322 2322
     _cmGrXY_PtoV(p, p->msDnObj->parent, px, py, &p->msVPt );

Loading…
Cancel
Save