71{
72 try {
73 g.setColour(juce::Colours::black);
74 g.setFont(std::min(16.0F, static_cast<float>(height) * 0.7F));
75 if (column_id != 1) { return; }
77 std::cmp_less_equal(profile_size, row_number)) {
78 g.drawText("Unknown control", 0, 0, width, height, juce::Justification::centred);
79 rsj::Log(fmt::format(FMT_STRING(
"Unknown control CommandTableModel::paintCell. {} rows "
80 "in profile, row number to be painted is {}."),
81 profile_size, row_number));
82 return;
83 }
85 const auto messageText {FormatMessageText(cmd)};
86 g.drawText(messageText, 0, 0, width, height, juce::Justification::centredLeft);
87 }
88 catch (const std::exception& e) {
90 throw;
91 }
92}
void ExceptionResponse(gsl::czstring id, gsl::czstring fu, const std::exception &e) noexcept
void Log(const juce::String &info, const std::source_location &location=std::source_location::current()) noexcept
Definition Misc.cpp:131