Apparently std::roundf() doesn't exist there, but plain roundf()
from <cmath> does.
This closes bug #945.
float TimeMarker::get_x() const
{
- return std::roundf(((time_ - view_.offset()) / view_.scale()).convert_to<float>()) + 0.5f;
+ // Use roundf() from cmath, std::roundf() causes Android issues (see #945).
+ return roundf(((time_ - view_.offset()) / view_.scale()).convert_to<float>()) + 0.5f;
}
QPoint TimeMarker::point(const QRect &rect) const