emailuis/emailui/src/ncsheadercontainer.cpp
branchRCL_3
changeset 11 0396474f30f5
parent 10 f5907b1a1053
child 12 4ce476e64c59
equal deleted inserted replaced
10:f5907b1a1053 11:0396474f30f5
  1092 		return 0;
  1092 		return 0;
  1093 		}
  1093 		}
  1094 	
  1094 	
  1095 	MNcsControl* ncsCtrl = dynamic_cast<MNcsControl*>( coe );
  1095 	MNcsControl* ncsCtrl = dynamic_cast<MNcsControl*>( coe );
  1096 	// This will give the the position relative to the top of the control
  1096 	// This will give the the position relative to the top of the control
  1097 	TInt pos = ncsCtrl->CursorPosition();
  1097 	TInt pos(0); // Coverity error fix ncsCtrl could be NULL
  1098 	// add the location of the top of the control relative to the top
  1098 	if(ncsCtrl)
  1099 	// of the header.
  1099 	    {
  1100 	pos += coe->Rect().iTl.iY - Rect().iTl.iY;
  1100         pos = ncsCtrl->CursorPosition();
       
  1101         // add the location of the top of the control relative to the top
       
  1102         // of the header.
       
  1103         pos += coe->Rect().iTl.iY - Rect().iTl.iY;
       
  1104 	    }
  1101 	return pos;
  1105 	return pos;
  1102 	}
  1106 	}
  1103 
  1107 
  1104 // ---------------------------------------------------------------------------
  1108 // ---------------------------------------------------------------------------
  1105 // CNcsHeaderContainer::CursorLineNumber
  1109 // CNcsHeaderContainer::CursorLineNumber