Kaydet (Commit) 074cbe02 authored tarafından David Tardon's avatar David Tardon

coverity#1242510 arguments in wrong order

Change-Id: I898f3e383f5ff3451860e49b0ea00111ed1b52c2
üst dbf093aa
...@@ -348,7 +348,7 @@ namespace dbaui ...@@ -348,7 +348,7 @@ namespace dbaui
OUString aText = const_cast< ORelationControl*>(this)->GetCellText( m_nDataPos, nColumnId ); OUString aText = const_cast< ORelationControl*>(this)->GetCellText( m_nDataPos, nColumnId );
Point aPos( rRect.TopLeft() ); Point aPos( rRect.TopLeft() );
Size aTextSize( GetDataWindow().GetTextHeight(),GetDataWindow().GetTextWidth( aText )); Size aTextSize( GetDataWindow().GetTextWidth( aText ), GetDataWindow().GetTextHeight() );
if( aPos.X() < rRect.Right() || aPos.X() + aTextSize.Width() > rRect.Right() || if( aPos.X() < rRect.Right() || aPos.X() + aTextSize.Width() > rRect.Right() ||
aPos.Y() < rRect.Top() || aPos.Y() + aTextSize.Height() > rRect.Bottom() ) aPos.Y() < rRect.Top() || aPos.Y() + aTextSize.Height() > rRect.Bottom() )
......
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