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

fix
parent 47921b8f
No related branches found
No related tags found
No related merge requests found
// $Id: Levelset.cpp,v 1.35 2007-09-11 15:29:01 geuzaine Exp $
// $Id: Levelset.cpp,v 1.36 2007-09-15 16:20:49 geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
......@@ -555,7 +555,7 @@ PView *GMSH_LevelsetPlugin::execute(PView *v)
if(_valueView < 0) {
w = v;
}
else if(_valueView < 0 || _valueView > PView::list.size() - 1){
else if(_valueView > PView::list.size() - 1){
Msg(GERROR, "View[%d] does not exist: reverting to View[%d]",
_valueView, v->getIndex());
w = v;
......
// $Id: StreamLines.cpp,v 1.31 2007-09-11 14:01:55 geuzaine Exp $
// $Id: StreamLines.cpp,v 1.32 2007-09-15 16:20:49 geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
......@@ -372,7 +372,7 @@ PView *GMSH_StreamLinesPlugin::execute(PView *v)
PView *v1 = getView(iView, v);
if(!v1) return v;
PView *v2 = getView(dView, v);
PView *v2 = (dView < 0) ? 0 : getView(dView, v);
return GenerateView(v1, v2);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment