Skip to content

Commit

Permalink
more debug assert against egui_table
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
abey79 committed Sep 10, 2024
1 parent 50f27cd commit f532948
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions crates/viewer/re_space_view_dataframe/src/dataframe_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,17 +210,7 @@ impl<'a> egui_table::TableDelegate for DataframeTableDelegate<'a> {
.rect_filled(ui.max_rect(), 0.0, ui.visuals().faint_bg_color);
}

// sanity check, this should never happen
if cell.row_nr >= self.num_rows {
error_ui(
ui,
format!(
"Unexpected row_nr: {} (table row count {})",
cell.row_nr, self.num_rows
),
);
return;
}
debug_assert!(cell.row_nr < self.num_rows, "Bug in egui_table");

let display_data = match &self.display_data {
Ok(display_data) => display_data,
Expand Down

0 comments on commit f532948

Please sign in to comment.