mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +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)
|
bool Paragraph::stripLeadingSpaces(bool trackChanges)
|
||||||
{
|
{
|
||||||
if (isFreeSpacing())
|
if (isFreeSpacing())
|
||||||
return 0;
|
return false;
|
||||||
|
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
@ -576,7 +576,7 @@ bool Paragraph::stripLeadingSpaces(bool trackChanges)
|
|||||||
++pos;
|
++pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
return count + pos > 0;
|
return count > 0 || pos > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user