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

fix crash in batch mode
parent ec018db1
No related branches found
No related tags found
No related merge requests found
// $Id: OpenFile.cpp,v 1.160 2007-09-10 05:31:35 geuzaine Exp $ // $Id: OpenFile.cpp,v 1.161 2007-09-12 21:17:01 geuzaine Exp $
// //
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// //
...@@ -236,7 +236,7 @@ int ParseFile(char *f, int close, int warn_if_missing) ...@@ -236,7 +236,7 @@ int ParseFile(char *f, int close, int warn_if_missing)
yyviewindex = yyviewindex_old; yyviewindex = yyviewindex_old;
#if defined(HAVE_FLTK) #if defined(HAVE_FLTK)
if(numViewsBefore != PView::list.size()) if(!CTX.batch && numViewsBefore != PView::list.size())
WID->update_views(); WID->update_views();
#endif #endif
...@@ -397,7 +397,7 @@ int MergeFile(char *name, int warn_if_missing) ...@@ -397,7 +397,7 @@ int MergeFile(char *name, int warn_if_missing)
checkHighOrderTriangles(m); checkHighOrderTriangles(m);
#if defined(HAVE_FLTK) #if defined(HAVE_FLTK)
if(numViewsBefore != PView::list.size()) if(!CTX.batch && numViewsBefore != PView::list.size())
WID->update_views(); WID->update_views();
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment