From: bangerth Date: Fri, 1 Jul 2011 14:36:09 +0000 (+0000) Subject: Avoid accessing invalid elements of an array. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=085dae9f4147d396159a2ee02c0d485f0973690a;p=dealii-svn.git Avoid accessing invalid elements of an array. git-svn-id: https://svn.dealii.org/trunk@23904 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/grid/grid_in.cc b/deal.II/source/grid/grid_in.cc index f789b78f0b..8579f3d731 100644 --- a/deal.II/source/grid/grid_in.cc +++ b/deal.II/source/grid/grid_in.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors +// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -1666,7 +1666,7 @@ void GridIn<2>::read_tecplot (std::istream &in) if (next_index==dim && structured) break; - if (i==tecplot2deal[next_index]) + if ((next_index