HaikuDepot: Paragraph: Added IsEmpty().

This commit is contained in:
Stephan Aßmus 2013-09-07 00:08:28 +02:00
parent 720f7fdf54
commit c6a0782a8f
2 changed files with 7 additions and 0 deletions

View File

@ -143,3 +143,9 @@ Paragraph::Length() const
return length;
}
bool
Paragraph::IsEmpty() const
{
return fTextSpans.CountItems() == 0;
}

View File

@ -35,6 +35,7 @@ public:
void Clear();
int32 Length() const;
bool IsEmpty() const;
private:
ParagraphStyle fStyle;