1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Point to caller's location when using log_or_panic (#2552)

This commit is contained in:
Kornel
2023-01-07 19:27:19 +00:00
committed by GitHub
parent 34f587d1e1
commit e70204d726
2 changed files with 4 additions and 0 deletions

View File

@@ -1026,6 +1026,7 @@ impl<'a, 'b> TableRow<'a, 'b> {
/// Add the contents of a column.
///
/// Return the used space (`min_rect`) plus the [`Response`] of the whole cell.
#[cfg_attr(debug_assertions, track_caller)]
pub fn col(&mut self, add_cell_contents: impl FnOnce(&mut Ui)) -> (Rect, Response) {
let col_index = self.col_index;