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

change graph bbox when changing current model

parent d9949a30
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,8 @@ void GetResources(double *s, long *mem) ...@@ -76,7 +76,8 @@ void GetResources(double *s, long *mem)
#endif #endif
} }
void CheckResources(){ void CheckResources()
{
#if !defined (WIN32) || defined(__CYGWIN__) #if !defined (WIN32) || defined(__CYGWIN__)
static struct rlimit r; static struct rlimit r;
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "GUI.h" #include "GUI.h"
#include "dialogWindow.h" #include "dialogWindow.h"
#include "GmshDefines.h" #include "GmshDefines.h"
#include "OpenFile.h"
#include "CreateFile.h" #include "CreateFile.h"
#include "Options.h" #include "Options.h"
#include "Draw.h" #include "Draw.h"
...@@ -144,6 +145,7 @@ static void model_switch_cb(Fl_Widget* w, void *data) ...@@ -144,6 +145,7 @@ static void model_switch_cb(Fl_Widget* w, void *data)
Fl_Select_Browser *b = (Fl_Select_Browser *)w; Fl_Select_Browser *b = (Fl_Select_Browser *)w;
if(b->value()){ if(b->value()){
GModel::current(b->value() - 1); GModel::current(b->value() - 1);
SetBoundingBox();
for(unsigned int i = 0; i < GModel::list.size(); i++) for(unsigned int i = 0; i < GModel::list.size(); i++)
GModel::list[i]->setVisibility(0); GModel::list[i]->setVisibility(0);
GModel::current()->setVisibility(1); GModel::current()->setVisibility(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment