* src/paragraph.C: stripLeadingSpaces(): make return statements

more meaningful


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17269 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2007-02-20 08:34:04 +00:00
parent 56cef9e559
commit 35ce135f97

View File

@ -564,7 +564,7 @@ void Paragraph::makeSameLayout(Paragraph const & par)
bool Paragraph::stripLeadingSpaces(bool trackChanges)
{
if (isFreeSpacing())
return 0;
return false;
int pos = 0;
int count = 0;
@ -576,7 +576,7 @@ bool Paragraph::stripLeadingSpaces(bool trackChanges)
++pos;
}
return count + pos > 0;
return count > 0 || pos > 0;
}