maybe fix crash with bookmarks table

This commit is contained in:
invader-zimm 2021-05-12 10:49:46 -04:00 committed by GitHub
parent e6ab6f3cc9
commit bbff0036dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -571,9 +571,9 @@ private:
// saved frequencies table // saved frequencies table
static ImGuiTableFlags table_flags = ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_ScrollY | ImGuiTableFlags_RowBg; static ImGuiTableFlags table_flags = ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_ScrollY | ImGuiTableFlags_RowBg;
ImGui::BeginTable("bookmarks_table", 2, table_flags, ImVec2(0.0f, 300)); ImGui::BeginTable("bookmarks_table", 2, table_flags, ImVec2(0.0f, 300));
ImGui::TableSetupScrollFreeze(0, 1);
ImGui::TableSetupColumn("Description", ImGuiTableColumnFlags_WidthStretch, 67); ImGui::TableSetupColumn("Description", ImGuiTableColumnFlags_WidthStretch, 67);
ImGui::TableSetupColumn("Frequency", ImGuiTableColumnFlags_WidthStretch, 33); ImGui::TableSetupColumn("Frequency", ImGuiTableColumnFlags_WidthStretch, 33);
ImGui::TableSetupScrollFreeze(0, 1);
ImGui::TableHeadersRow(); ImGui::TableHeadersRow();
static bool tmpzzz; static bool tmpzzz;
if (_this->displayed_bookmarks.size() > 0) if (_this->displayed_bookmarks.size() > 0)