X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftimemarker.cpp;h=853f7c02675e0b594606e96eff8574734fcb2fff;hp=eaa03b942294e62c4500f7b59bdbccb1a4b3ef8d;hb=33094993339188a3baef302fb09eff6bf6bb6779;hpb=60938e0430a0d08792ba53b86ca94153baaed74d diff --git a/pv/view/timemarker.cpp b/pv/view/timemarker.cpp index eaa03b94..853f7c02 100644 --- a/pv/view/timemarker.cpp +++ b/pv/view/timemarker.cpp @@ -74,7 +74,8 @@ void TimeMarker::set_time(const pv::util::Timestamp& time) float TimeMarker::get_x() const { - return std::roundf(((time_ - view_.offset()) / view_.scale()).convert_to()) + 0.5f; + // Use roundf() from cmath, std::roundf() causes Android issues (see #945). + return roundf(((time_ - view_.offset()) / view_.scale()).convert_to()) + 0.5f; } QPoint TimeMarker::point(const QRect &rect) const