Kaydet (Commit) a0f368b6 authored tarafından Eike Rathke's avatar Eike Rathke

yes, placement of parentheses is important :-/

Change-Id: I606efefada9529571e5a400da65592905200b987
üst c61891c0
...@@ -1161,7 +1161,7 @@ void ScCsvGrid::ImplDrawColumnBackgr( sal_uInt32 nColIndex ) ...@@ -1161,7 +1161,7 @@ void ScCsvGrid::ImplDrawColumnBackgr( sal_uInt32 nColIndex )
if( (nColIndex < rStrVec.size()) && (rStrVec[ nColIndex ].getLength() > nStrPos) ) if( (nColIndex < rStrVec.size()) && (rStrVec[ nColIndex ].getLength() > nStrPos) )
{ {
const OUString& rStr = rStrVec[ nColIndex ]; const OUString& rStr = rStrVec[ nColIndex ];
OUString aText = rStr.copy( nStrPos, ::std::min( nStrLen, rStr.getLength()) - nStrPos ); OUString aText = rStr.copy( nStrPos, ::std::min( nStrLen, rStr.getLength() - nStrPos) );
ImplDrawCellText( Point( nStrX, GetY( GetFirstVisLine() + nLine ) ), aText ); ImplDrawCellText( Point( nStrX, GetY( GetFirstVisLine() + nLine ) ), aText );
} }
} }
......
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