Corretta la TParagraph_string::tokenize()
git-svn-id: svn://10.65.10.50/trunk@2491 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
67bdc4a5c3
commit
b3bbb1a51a
@ -1333,8 +1333,9 @@ void TParagraph_string::tokenize()
|
||||
{
|
||||
int last_space = 0;
|
||||
int chars_in_row = 0;
|
||||
const int l = len();
|
||||
TString stmp;
|
||||
for (int start = 0; start < len(); start++)
|
||||
for (int start = 0; start < l; start++)
|
||||
{
|
||||
switch (_str[start])
|
||||
{
|
||||
@ -1343,7 +1344,7 @@ void TParagraph_string::tokenize()
|
||||
default : chars_in_row++; break;
|
||||
}
|
||||
stmp<<_str[start];
|
||||
if (chars_in_row == _width)
|
||||
if (chars_in_row == _width && chars_in_row != l)
|
||||
{
|
||||
if (last_space!=0) stmp[last_space] = '|';
|
||||
else stmp<<"|";
|
||||
|
Loading…
x
Reference in New Issue
Block a user