Kaydet (Commit) bc9c7e42 authored tarafından Caolán McNamara's avatar Caolán McNamara

fix debug=t build

Change-Id: Ibc81d1677e9eb297797c7fa9e7c77c9437f65b15
üst c3beba87
......@@ -101,6 +101,10 @@ public:
//SV-SS e.g. pWin->DrawRect( aSwRect.SVRect() );
inline Rectangle SVRect() const;
// Output operator for debugging.
friend SvStream& WriteSwRect( SvStream &rStream, const SwRect &rRect );
void _Top( const long nTop );
void _Bottom( const long nBottom );
void _Left( const long nLeft );
......
......@@ -223,4 +223,16 @@ void SwRect::SetUpperRightCorner( const Point& rNew )
void SwRect::SetLowerLeftCorner( const Point& rNew )
{ m_Point = Point(rNew.A(), rNew.B() - m_Size.getHeight()); }
#ifdef DBG_UTIL
SvStream& WriteSwRect(SvStream &rStream, const SwRect &rRect)
{
rStream.WriteChar('[').WriteInt32(rRect.Top()).
WriteChar('/').WriteInt32(rRect.Left()).
WriteChar(',').WriteInt32(rRect.Width()).
WriteChar('x').WriteInt32(rRect.Height()).
WriteCharPtr("] ");
return rStream;
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment