summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-10-11 13:12:57 +0200
committerEike Rathke <erack@redhat.com>2013-10-11 13:13:47 +0200
commita0f368b657fbba47bd8015cc1c173f38b3f2e8a0 (patch)
tree9d8fd69124004a6492d07a160ce44530609df6ec /sc
parentc61891c096725cde7241ece415bf299ddb9e725f (diff)
yes, placement of parentheses is important :-/
Change-Id: I606efefada9529571e5a400da65592905200b987
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/dbgui/csvgrid.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/dbgui/csvgrid.cxx b/sc/source/ui/dbgui/csvgrid.cxx
index bc3f4a23ba90..221da159997f 100644
--- a/sc/source/ui/dbgui/csvgrid.cxx
+++ b/sc/source/ui/dbgui/csvgrid.cxx
@@ -1161,7 +1161,7 @@ void ScCsvGrid::ImplDrawColumnBackgr( sal_uInt32 nColIndex )
if( (nColIndex < rStrVec.size()) && (rStrVec[ nColIndex ].getLength() > nStrPos) )
{
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 );
}
}