am 246d227c: Fix offdevice full debug build crash

* commit '246d227c5d19549cb00a8ee84e20d09ea00e14f4':
  Fix offdevice full debug build crash
This commit is contained in:
Ken Wakasa 2012-09-18 10:10:26 -07:00 committed by Android Git Automerger
commit 3157edb752

View file

@ -409,11 +409,11 @@ bool ProximityInfoState::pushTouchPoint(const int inputIndex, const int nodeChar
} }
NearKeysDistanceMap::const_iterator itPP = NearKeysDistanceMap::const_iterator itPP =
prevNearKeysDistances->find(minChar); prevNearKeysDistances->find(minChar);
if (itPP != prevNearKeysDistances->end() && minDist > itPP->second) {
if (DEBUG_GEO_FULL) { if (DEBUG_GEO_FULL) {
AKLOGI("p1: char = %c, minDist = %f, prevNear key minDist = %f", AKLOGI("p1: char = %c, minDist = %f, prevNear key minDist = %f",
minChar, itPP->second, minDist); minChar, itPP->second, minDist);
} }
if (itPP != prevNearKeysDistances->end() && minDist > itPP->second) {
return popped; return popped;
} }
} }