textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutrootctrl.cpp
branchRCL_3
changeset 10 6defe5d1bd39
parent 0 eb1f2e154e89
child 14 e6a39382bb9c
equal deleted inserted replaced
8:6ceef9a83b1a 10:6defe5d1bd39
   586             {
   586             {
   587             return ctrl;
   587             return ctrl;
   588             }
   588             }
   589             
   589             
   590         iPointerCaptureCtrl = aCtrl;    
   590         iPointerCaptureCtrl = aCtrl;    
   591         if(iCtrlWithPointerDown && ! aCtrl->PointerDown())
   591         
       
   592         if(iCtrlWithPointerDown && aCtrl != NULL && !aCtrl->PointerDown())
   592             {
   593             {
   593             //if someone else has pointer down, we must cancel the down event.
   594             //if someone else has pointer down, we must cancel the down event.
   594             TRAP_IGNORE(iCtrlWithPointerDown->CancelPointerDownL());
   595             TRAP_IGNORE(iCtrlWithPointerDown->CancelPointerDownL());
   595             iCtrlWithPointerDown = NULL;            
   596             iCtrlWithPointerDown = NULL;            
   596             }
   597             }