Browse Source

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

master
Kevin Larke 9 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
   bool       fl = false;
2316
   bool       fl = false;
2317
   cmGrObj_t* op = _cmGrFindObjRec(p, p->rootObj, evtFlags, px, py, gx, gy );
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
     // set the current virtual point
2321
     // set the current virtual point
2322
     _cmGrXY_PtoV(p, p->msDnObj->parent, px, py, &p->msVPt );
2322
     _cmGrXY_PtoV(p, p->msDnObj->parent, px, py, &p->msVPt );

Loading…
Cancel
Save