- wxDouble left,right,bottom,top ;
- left = wxMax ( src1.m_x , src2.m_x ) ;
- right = wxMin ( src1.m_x+src1.m_width, src2.m_x + src2.m_width ) ;
- top = wxMax ( src1.m_y , src2.m_y ) ;
- bottom = wxMin ( src1.m_y+src1.m_height, src2.m_y + src2.m_height ) ;
-
- if ( left < right && top < bottom )
- {
- dest->m_x = left ;
- dest->m_y = top ;
- dest->m_width = right - left ;
- dest->m_height = bottom - top ;
- }
- else
- {
- dest->m_width = dest->m_height = 0 ;
- }
+ wxDouble left,right,bottom,top;
+ left = wxMax ( src1.m_x , src2.m_x );
+ right = wxMin ( src1.m_x+src1.m_width, src2.m_x + src2.m_width );
+ top = wxMax ( src1.m_y , src2.m_y );
+ bottom = wxMin ( src1.m_y+src1.m_height, src2.m_y + src2.m_height );
+
+ if ( left < right && top < bottom )
+ {
+ dest->m_x = left;
+ dest->m_y = top;
+ dest->m_width = right - left;
+ dest->m_height = bottom - top;
+ }
+ else
+ {
+ dest->m_width = dest->m_height = 0;
+ }