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

cleanup

parent c851335b
No related branches found
No related tags found
No related merge requests found
...@@ -395,20 +395,11 @@ int MergeFile(std::string fileName, bool warnIfMissing) ...@@ -395,20 +395,11 @@ int MergeFile(std::string fileName, bool warnIfMissing)
#if defined(HAVE_FLTK) && defined(HAVE_POST) #if defined(HAVE_FLTK) && defined(HAVE_POST)
if(FlGui::available()){ if(FlGui::available()){
bool newViews = numViewsBefore != (int)PView::list.size(); // go directly to the first non-empty step
if(newViews){ for(unsigned int i = numViewsBefore; i < PView::list.size(); i++)
// go directly to the first non-empty step opt_view_timestep(i, GMSH_SET | GMSH_GUI,
for(unsigned int i = 0; i < PView::list.size(); i++){ PView::list[i]->getData()->getFirstNonEmptyTimeStep());
for(int j = 0; j < (int)opt_view_nb_timestep(i, GMSH_GET, 0); j++){ FlGui::instance()->updateViews(numViewsBefore != (int)PView::list.size());
int step = (int)opt_view_timestep(i, GMSH_GET, 0);
if(PView::list[i]->getData()->hasTimeStep(step))
break;
else
opt_view_timestep(i, GMSH_SET | GMSH_GUI, step + 1);
}
}
}
FlGui::instance()->updateViews(newViews);
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment