Skip to content
Snippets Groups Projects
Commit 752bac93 authored by Lan Dam's avatar Lan Dam
Browse files

Fix bug happen when zooming in overlap section

parent 7341e59b
No related branches found
No related tags found
1 merge request!149Fix bug happen when zooming in overlap section
...@@ -254,12 +254,8 @@ def get_total_miny_maxy( ...@@ -254,12 +254,8 @@ def get_total_miny_maxy(
if new_x.size == 0: if new_x.size == 0:
return 0, None, None return 0, None, None
new_min_x = min(new_x) new_min_x_index = min(new_x_indexes)
new_max_x = max(new_x) new_max_x_index = max(new_x_indexes)
new_min_x_index = np.where(x == new_min_x)[0][0]
new_max_x_index = np.where(x == new_max_x)[0][0]
new_y = y[new_min_x_index:new_max_x_index + 1] new_y = y[new_min_x_index:new_max_x_index + 1]
new_min_y = min(new_y) new_min_y = min(new_y)
new_max_y = max(new_y) new_max_y = max(new_y)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment