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

updateViews test cannot rely on numPreviousViews when parsing script files

parent fc88a4bd
No related branches found
No related tags found
No related merge requests found
......@@ -186,9 +186,9 @@ int ParseFile(const std::string &fileName, bool close, bool warnIfMissing)
return 0;
}
#if defined(HAVE_FLTK) && defined(HAVE_POST)
int numViewsBefore = PView::list.size();
#endif
//#if defined(HAVE_FLTK) && defined(HAVE_POST)
// int numViewsBefore = PView::list.size();
//#endif
std::string old_yyname = gmsh_yyname;
gmshFILE old_yyin = gmsh_yyin;
......@@ -227,8 +227,11 @@ int ParseFile(const std::string &fileName, bool close, bool warnIfMissing)
gmsh_yyviewindex = old_yyviewindex;
#if defined(HAVE_FLTK) && defined(HAVE_POST)
if(FlGui::available())
FlGui::instance()->updateViews(numViewsBefore != (int)PView::list.size(), false);
if(FlGui::available()){
// this is not enough if the script creates and deletes views
//FlGui::instance()->updateViews(numViewsBefore != (int)PView::list.size(), false);
FlGui::instance()->updateViews(true, false);
}
#endif
return 1;
......
......@@ -14,8 +14,8 @@ up-to-date versions, documentation and examples." > /tmp/README.txt
GMSH=svn
GETDP=svn
GMSH=2.8.5
GETDP=2.4.4
#GMSH=2.8.5
#GETDP=2.4.4
rm -rf gmsh-getdp-Windows64
mkdir gmsh-getdp-Windows64
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment