Changeset 108 for Mulberry/trunk/Linux/Sources/Application/Calendar/Calendar_View/Day_Week_View/CDayWeekTable.cp
- Timestamp:
- 10/20/07 15:17:40 (1 year ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Mulberry/trunk/Linux/Sources/Application/Calendar/Calendar_View/Day_Week_View/CDayWeekTable.cp
r21 r108 127 127 { 128 128 STableCell hitCell; 129 JPoint imagePt; 130 LocalToImagePoint(mContextPoint, imagePt); 131 132 if (GetCellHitBy(imagePt, hitCell)) 129 if (GetCellHitBy(mContextPoint, hitCell)) 133 130 { 134 131 // Broadcast double-click if in day area … … 173 170 iCal::CICalendarDateTime CDayWeekTable::GetClickDateTime(const JPoint& localPt) const 174 171 { 175 JPoint imagePt;176 LocalToImagePoint(localPt, imagePt);177 172 STableCell hitCell; 178 if (GetCellHitBy( imagePt, hitCell))173 if (GetCellHitBy(localPt, hitCell)) 179 174 { 180 175 if (hitCell.row == cAllDayRow) … … 196 191 uint32_t bot_secs = mEndHour * 60 * 60; 197 192 198 uint32_t click_secs = top_secs + (bot_secs - top_secs) * ( imagePt.y - cellTop) / (cellBottom - cellTop);193 uint32_t click_secs = top_secs + (bot_secs - top_secs) * (localPt.y - cellTop) / (cellBottom - cellTop); 199 194 200 195 // Round to nearest 15 minute (900 second) interval