Martin Vermeer wrote:
>> Do you have problems with 1.4.0cvs? The counting code seems reasonable
>> there (although there is a +1 I am not sure to understand).
> 
> I was wondering about that too. Angus should know.

    return int(lyx::count(str.begin(), str.end(),'\n') + 1);

How many lines in: "foo\nbar\nbaz" ?

-- 
Angus

Reply via email to