[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Fri Oct 11 04:14:20 PDT 2013
sc/source/ui/dbgui/csvgrid.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a0f368b657fbba47bd8015cc1c173f38b3f2e8a0
Author: Eike Rathke <erack at redhat.com>
Date: Fri Oct 11 13:12:57 2013 +0200
yes, placement of parentheses is important :-/
Change-Id: I606efefada9529571e5a400da65592905200b987
diff --git a/sc/source/ui/dbgui/csvgrid.cxx b/sc/source/ui/dbgui/csvgrid.cxx
index bc3f4a2..221da15 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 );
}
}
More information about the Libreoffice-commits
mailing list