Change how Rectangles are printed, special case for EMPTY
Change-Id: I0fe230875e785b811ae09e04399790a53b354dd6
This commit is contained in:
parent
74fa38afcd
commit
f222e81cb8
1 changed files with 5 additions and 2 deletions
|
@ -679,8 +679,11 @@ template< typename charT, typename traits >
|
|||
inline std::basic_ostream<charT, traits> & operator <<(
|
||||
std::basic_ostream<charT, traits> & stream, const Rectangle& rectangle )
|
||||
{
|
||||
return stream << rectangle.getX() << ',' << rectangle.getY() << ' '
|
||||
<< rectangle.getWidth() << 'x' << rectangle.getHeight();
|
||||
if (rectangle.IsEmpty())
|
||||
return stream << "EMPTY";
|
||||
else
|
||||
return stream << rectangle.getWidth() << 'x' << rectangle.getHeight()
|
||||
<< "@(" << rectangle.getX() << ',' << rectangle.getY() << ")";
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue