Change how Rectangles are printed, special case for EMPTY
Change-Id: I0fe230875e785b811ae09e04399790a53b354dd6
This commit is contained in:
@@ -679,8 +679,11 @@ template< typename charT, typename traits >
|
|||||||
inline std::basic_ostream<charT, traits> & operator <<(
|
inline std::basic_ostream<charT, traits> & operator <<(
|
||||||
std::basic_ostream<charT, traits> & stream, const Rectangle& rectangle )
|
std::basic_ostream<charT, traits> & stream, const Rectangle& rectangle )
|
||||||
{
|
{
|
||||||
return stream << rectangle.getX() << ',' << rectangle.getY() << ' '
|
if (rectangle.IsEmpty())
|
||||||
<< rectangle.getWidth() << 'x' << rectangle.getHeight();
|
return stream << "EMPTY";
|
||||||
|
else
|
||||||
|
return stream << rectangle.getWidth() << 'x' << rectangle.getHeight()
|
||||||
|
<< "@(" << rectangle.getX() << ',' << rectangle.getY() << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user