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) ...@@ -186,9 +186,9 @@ int ParseFile(const std::string &fileName, bool close, bool warnIfMissing)
return 0; return 0;
} }
#if defined(HAVE_FLTK) && defined(HAVE_POST) //#if defined(HAVE_FLTK) && defined(HAVE_POST)
int numViewsBefore = PView::list.size(); // int numViewsBefore = PView::list.size();
#endif //#endif
std::string old_yyname = gmsh_yyname; std::string old_yyname = gmsh_yyname;
gmshFILE old_yyin = gmsh_yyin; gmshFILE old_yyin = gmsh_yyin;
...@@ -227,8 +227,11 @@ int ParseFile(const std::string &fileName, bool close, bool warnIfMissing) ...@@ -227,8 +227,11 @@ int ParseFile(const std::string &fileName, bool close, bool warnIfMissing)
gmsh_yyviewindex = old_yyviewindex; gmsh_yyviewindex = old_yyviewindex;
#if defined(HAVE_FLTK) && defined(HAVE_POST) #if defined(HAVE_FLTK) && defined(HAVE_POST)
if(FlGui::available()) if(FlGui::available()){
FlGui::instance()->updateViews(numViewsBefore != (int)PView::list.size(), false); // 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 #endif
return 1; return 1;
......
...@@ -14,8 +14,8 @@ up-to-date versions, documentation and examples." > /tmp/README.txt ...@@ -14,8 +14,8 @@ up-to-date versions, documentation and examples." > /tmp/README.txt
GMSH=svn GMSH=svn
GETDP=svn GETDP=svn
GMSH=2.8.5 #GMSH=2.8.5
GETDP=2.4.4 #GETDP=2.4.4
rm -rf gmsh-getdp-Windows64 rm -rf gmsh-getdp-Windows64
mkdir 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