From: leicht Date: Wed, 13 Dec 2006 11:58:51 +0000 (+0000) Subject: bug fix: up to now we ended up with the wrong result (or an error), if we tried to... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffb24acb45560e22e7eb79374098a2c4eec0b1fd;p=dealii-svn.git bug fix: up to now we ended up with the wrong result (or an error), if we tried to split a text into lines which does not fit into width git-svn-id: https://svn.dealii.org/trunk@14231 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/utilities.cc b/deal.II/base/source/utilities.cc index 291caf2982..169b9315de 100644 --- a/deal.II/base/source/utilities.cc +++ b/deal.II/base/source/utilities.cc @@ -214,7 +214,7 @@ namespace Utilities // location of the previous space, so // that we can break around there int location = std::min(width,text.length()-1); - for (; location>=0; --location) + for (; location>0; --location) if (text[location] == delimiter) break;