From ffb24acb45560e22e7eb79374098a2c4eec0b1fd Mon Sep 17 00:00:00 2001 From: leicht Date: Wed, 13 Dec 2006 11:58:51 +0000 Subject: [PATCH] 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 --- deal.II/base/source/utilities.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5