fix formatting issues in inverted threshold code

This commit is contained in:
AdenKoperczak 2024-12-09 18:49:23 -05:00
parent 7c884fec55
commit 1c4551522d

View file

@ -136,8 +136,9 @@ void PlacefileText::Impl::RenderTextDrawItem(
std::chrono::system_clock::now() : std::chrono::system_clock::now() :
selectedTime_; selectedTime_;
const bool thresholdMet = mapDistance_ <= di->threshold_ || const bool thresholdMet =
((double)di->threshold_ < 0.0 && mapDistance_ >= -(di->threshold_)); mapDistance_ <= di->threshold_ ||
((double) di->threshold_ < 0.0 && mapDistance_ >= -(di->threshold_));
if ((!thresholded_ || thresholdMet) && if ((!thresholded_ || thresholdMet) &&
(di->startTime_ == std::chrono::system_clock::time_point {} || (di->startTime_ == std::chrono::system_clock::time_point {} ||