From 1d7247813828fd3027ffcf82a74cdba4135ab403 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Tue, 9 Apr 2024 09:15:56 +0200 Subject: [PATCH] do full x/y zoom when switching log/linear x/y scales in graphs --- src/xschem.tcl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xschem.tcl b/src/xschem.tcl index ef5d6a3e..f9a3d8c9 100644 --- a/src/xschem.tcl +++ b/src/xschem.tcl @@ -3077,11 +3077,15 @@ proc graph_edit_properties {n} { xschem setprop rect 2 $graph_selected subdivx 8 fast .graphdialog.top2.subdivx delete 0 end .graphdialog.top2.subdivx insert 0 8 + xschem setprop rect 2 $graph_selected fullxzoom + xschem setprop rect 2 $graph_selected fullyzoom } else { graph_push_undo xschem setprop rect 2 $graph_selected subdivx 4 fast .graphdialog.top2.subdivx delete 0 end .graphdialog.top2.subdivx insert 0 4 + xschem setprop rect 2 $graph_selected fullxzoom + xschem setprop rect 2 $graph_selected fullyzoom } xschem draw_graph $graph_selected } @@ -3097,11 +3101,13 @@ proc graph_edit_properties {n} { xschem setprop rect 2 $graph_selected subdivy 8 fast .graphdialog.top2.subdivy delete 0 end .graphdialog.top2.subdivy insert 0 8 + xschem setprop rect 2 $graph_selected fullyzoom } else { graph_push_undo xschem setprop rect 2 $graph_selected subdivy 4 fast .graphdialog.top2.subdivy delete 0 end .graphdialog.top2.subdivy insert 0 4 + xschem setprop rect 2 $graph_selected fullyzoom } xschem draw_graph $graph_selected }