|
@@ -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 );
|