various: moved more to core lib
This commit is contained in:
@@ -153,7 +153,7 @@ void TimeBasedWidget::UpdateMaximumScroll()
|
||||
rational length = (viewer_node_) ? viewer_node_->GetLength() : 0;
|
||||
|
||||
if (auto_max_scrollbar_) {
|
||||
scrollbar_->setMaximum(qMax(0, qCeil(TimeToScene(length)) - width()));
|
||||
scrollbar_->setMaximum(std::max(0, int(std::ceil(TimeToScene(length)) - width())));
|
||||
}
|
||||
|
||||
foreach (TimeBasedView* base, timeline_views_) {
|
||||
|
||||
Reference in New Issue
Block a user