*** hypertreelist.py Thu May 7 22:39:37 2009 --- ../workspace/taskcoach_latest_release/taskcoachlib/thirdparty/hypertreelist.py Thu May 7 22:34:39 2009 *************** *** 880,888 **** return self, flags, column # check for hit on the check icons ! wcheck = 0 ! if theCtrl._checkWidth > 0: ! chkX = self._text_x - theCtrl._imgWidth - 3*_MARGIN - theCtrl._btnWidth chkY = y_mid - theCtrl._checkHeight2 if ((point.x >= chkX) and (point.x <= (chkX + theCtrl._checkWidth)) and (point.y >= chkY) and (point.y <= (chkY + theCtrl._checkHeight))): --- 880,892 ---- return self, flags, column # check for hit on the check icons ! if self.GetType() != 0: ! imageWidth = 0 ! numberOfMargins = 1 ! if self.GetCurrentImage() != _NO_IMAGE: ! imageWidth = theCtrl._imgWidth ! numberOfMargins += 1 ! chkX = self._text_x - imageWidth - numberOfMargins*_MARGIN - theCtrl._checkWidth chkY = y_mid - theCtrl._checkHeight2 if ((point.x >= chkX) and (point.x <= (chkX + theCtrl._checkWidth)) and (point.y >= chkY) and (point.y <= (chkY + theCtrl._checkHeight))): *************** *** 890,896 **** return self, flags, maincol # check for image hit ! if theCtrl._imgWidth > 0: imgX = self._text_x - theCtrl._imgWidth - _MARGIN imgY = y_mid - theCtrl._imgHeight2 if ((point.x >= imgX) and (point.x <= (imgX + theCtrl._imgWidth)) and --- 894,900 ---- return self, flags, maincol # check for image hit ! if self.GetCurrentImage() != _NO_IMAGE: imgX = self._text_x - theCtrl._imgWidth - _MARGIN imgY = y_mid - theCtrl._imgHeight2 if ((point.x >= imgX) and (point.x <= (imgX + theCtrl._imgWidth)) and