From ad705a59e7e3d31eba5a1f5f341148e374ade4b0 Mon Sep 17 00:00:00 2001 From: Da Shen Date: Wed, 3 Sep 2025 13:38:36 +0800 Subject: [PATCH] debug on table --- src/Data/Tree/tree_select.cpp | 2 ++ src/Edit/Replace/edit_select.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/Data/Tree/tree_select.cpp b/src/Data/Tree/tree_select.cpp index b25159761..721b543cc 100644 --- a/src/Data/Tree/tree_select.cpp +++ b/src/Data/Tree/tree_select.cpp @@ -327,6 +327,7 @@ table_search_coordinates (tree t, path p, int& row, int& col) { path table_search_cell (tree t, int row, int col) { + cout << "N(t): "<< N(t) << " col: " << col << " row: " << row << LF; path p; while (is_func (t, TFORMAT)) { p= p * (N (t) - 1); @@ -339,6 +340,7 @@ table_search_cell (tree t, int row, int col) { t= t[N (t) - 1]; } p= p * col; + cout << "N(t): "<< N(t) << " col: " << col << LF; t= t[col]; while (is_func (t, TFORMAT)) { p= p * (N (t) - 1); diff --git a/src/Edit/Replace/edit_select.cpp b/src/Edit/Replace/edit_select.cpp index 291b74191..a6cd064ad 100644 --- a/src/Edit/Replace/edit_select.cpp +++ b/src/Edit/Replace/edit_select.cpp @@ -423,6 +423,7 @@ edit_select_rep::compute_selection (path p1, path p2) { path fp= find_subtable_selection (et, p1, p2, row1, col1, row2, col2); tree st= subtree (et, fp); table_bound (fp, row1, col1, row2, col2); + cout << "row1: " << row1 << "\tcol1: " << col1 << "\trow2:" << row2 << "\tcol2: " << col2 << LF; int i, j; rectangle r (0, 0, 0, 0); -- Gitee