mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 23:07:43 +00:00
* 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:
parent
56cef9e559
commit
35ce135f97
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user