diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-13 16:07:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-13 20:35:20 +0000 |
commit | d18a5aa4da94cbe33b9fbbb3bf766051cb550021 (patch) | |
tree | 77dcf3f977e022d5037064da260d4270f73c8d7c /svtools | |
parent | 04d711e7572d523bac0fd05248cebb7dbd2eb8ed (diff) |
longparas: STRING_LEN is intended here to expand to string len
so just expand it on entry instead
Change-Id: Ieb9c7501dccf9da91c7b8377ad75739cbe1c3609
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/svtabbx.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/contnr/svtabbx.cxx b/svtools/source/contnr/svtabbx.cxx index de1cd94145ae..adb759c8bd4b 100644 --- a/svtools/source/contnr/svtabbx.cxx +++ b/svtools/source/contnr/svtabbx.cxx @@ -1231,7 +1231,7 @@ sal_Int32 SvHeaderTabListBox::GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nC { OUString sText = GetAccessibleCellText( _nRow, static_cast< sal_uInt16 >( _nColumnPos ) ); MetricVector aRects; - if ( GetGlyphBoundRects(Point(0,0),sText,0,STRING_LEN,0,aRects) ) + if ( GetGlyphBoundRects(Point(0,0), sText, 0, sText.getLength(), 0, aRects) ) { for (MetricVector::iterator aIter = aRects.begin(); aIter != aRects.end(); ++aIter) { |