Skip to content
Snippets Groups Projects
Commit ef4ff9b8 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't skip numeric scale with Alt+t (request from Charles Shahrokh GHAVAMIAN)

parent 1ba81617
No related branches found
No related tags found
No related merge requests found
...@@ -572,11 +572,9 @@ int FlGui::testGlobalShortcuts(int event) ...@@ -572,11 +572,9 @@ int FlGui::testGlobalShortcuts(int event)
} }
else if(Fl::test_shortcut(FL_ALT + 't')) { else if(Fl::test_shortcut(FL_ALT + 't')) {
for(unsigned int i = 0; i < PView::list.size(); i++) for(unsigned int i = 0; i < PView::list.size(); i++)
if(opt_view_visible(i, GMSH_GET, 0)){ if(opt_view_visible(i, GMSH_GET, 0))
double t = opt_view_intervals_type(i, GMSH_GET, 0) + 1; opt_view_intervals_type
if(t == 4) t++; // skip numeric (i, GMSH_SET | GMSH_GUI, opt_view_intervals_type(i, GMSH_GET, 0) + 1);
opt_view_intervals_type(i, GMSH_SET | GMSH_GUI, t);
}
status = 2; status = 2;
} }
else if(Fl::test_shortcut(FL_ALT + 'r')) { else if(Fl::test_shortcut(FL_ALT + 'r')) {
......
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