[apps/shared/function_banner_delegate] Factor reloadBannerViewForCursorOnFunction

This commit is contained in:
Ruben Dashyan
2019-07-08 17:34:22 +02:00
committed by Léa Saviot
parent c5ed1bebfe
commit 6d7e833a46
5 changed files with 6 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ void TangentGraphController::reloadBannerView() {
if (m_record.isNull()) {
return;
}
FunctionBannerDelegate::reloadBannerViewForCursorOnFunction(m_cursor, m_record, Shared::FunctionApp::app()->functionStore(), CartesianFunction::Symbol());
FunctionBannerDelegate::reloadBannerViewForCursorOnFunction(m_cursor, m_record, Shared::FunctionApp::app()->functionStore());
GraphControllerHelper::reloadDerivativeInBannerViewForCursorOnFunction(m_cursor, m_record);
constexpr size_t bufferSize = FunctionBannerDelegate::k_maxNumberOfCharacters + PrintFloat::bufferSizeForFloatsWithPrecision(Preferences::LargeNumberOfSignificantDigits);
char buffer[bufferSize];