diff --git a/apps/code/console_controller.cpp b/apps/code/console_controller.cpp index d8e8a2ee6..42cd951de 100644 --- a/apps/code/console_controller.cpp +++ b/apps/code/console_controller.cpp @@ -28,7 +28,6 @@ ConsoleController::ConsoleController(Responder * parentResponder, App * pythonDe TextFieldDelegate(), MicroPython::ExecutionEnvironment(), m_pythonDelegate(pythonDelegate), - m_rowHeight(GlobalPreferences::sharedGlobalPreferences()->font()->glyphSize().height()), m_importScriptsWhenViewAppears(false), m_selectableTableView(this, this, this, this), m_editCell(this, pythonDelegate, this), @@ -202,7 +201,7 @@ int ConsoleController::numberOfRows() const { } KDCoordinate ConsoleController::rowHeight(int j) { - return m_rowHeight; + return GlobalPreferences::sharedGlobalPreferences()->font()->glyphSize().height(); } KDCoordinate ConsoleController::cumulatedHeightFromIndex(int j) { diff --git a/apps/code/console_controller.h b/apps/code/console_controller.h index 60dcf67b5..a29e435e2 100644 --- a/apps/code/console_controller.h +++ b/apps/code/console_controller.h @@ -84,7 +84,6 @@ private: size_t firstNewLineCharIndex(const char * text, size_t length); StackViewController * stackViewController(); App * m_pythonDelegate; - int m_rowHeight; bool m_importScriptsWhenViewAppears; ConsoleStore m_consoleStore; SelectableTableView m_selectableTableView;