diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-03-17 14:24:01 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-03-17 20:18:46 +0000 |
commit | a6209ba6a8b5a2c9bcbd0d4f334e7d74acbde95f (patch) | |
tree | 44a45e9ccea2f818fda2fc8d34ebd59ef8dd076c /svtools | |
parent | ba66f477a3db8afdc8d76283747d30e80d437a8f (diff) |
vcl: OutputDevice::GetGlyphBoundRects()'s nIndex and nBase is always the same
So keeping just nIndex is enough.
Change-Id: I5d3a0e6b4a6ce1305a56cf50e7ff181a098f6412
Reviewed-on: https://gerrit.libreoffice.org/35336
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/brwbox3.cxx | 4 | ||||
-rw-r--r-- | svtools/source/contnr/svtabbx.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/brwbox/brwbox3.cxx b/svtools/source/brwbox/brwbox3.cxx index b0f5d518e849..e4f7409139d5 100644 --- a/svtools/source/brwbox/brwbox3.cxx +++ b/svtools/source/brwbox/brwbox3.cxx @@ -529,9 +529,9 @@ OUString BrowseBox::GetAccessibleCellText(long _nRow, sal_uInt16 _nColPos) const } -bool BrowseBox::GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector ) +bool BrowseBox::GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr, int nIndex, int nLen, MetricVector& rVector ) { - return Control::GetGlyphBoundRects( rOrigin, rStr, nIndex, nLen, nBase, rVector ); + return Control::GetGlyphBoundRects( rOrigin, rStr, nIndex, nLen, rVector ); } Rectangle BrowseBox::GetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const diff --git a/svtools/source/contnr/svtabbx.cxx b/svtools/source/contnr/svtabbx.cxx index be8b00b8315f..965fd15c3397 100644 --- a/svtools/source/contnr/svtabbx.cxx +++ b/svtools/source/contnr/svtabbx.cxx @@ -1090,9 +1090,9 @@ void SvHeaderTabListBox::GrabTableFocus() GrabFocus(); } -bool SvHeaderTabListBox::GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector ) +bool SvHeaderTabListBox::GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr, int nIndex, int nLen, MetricVector& rVector ) { - return Control::GetGlyphBoundRects( rOrigin, rStr, nIndex, nLen, nBase, rVector ); + return Control::GetGlyphBoundRects( rOrigin, rStr, nIndex, nLen, rVector ); } Rectangle SvHeaderTabListBox::GetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const @@ -1151,7 +1151,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, sText.getLength(), 0, aRects) ) + if ( GetGlyphBoundRects(Point(0,0), sText, 0, sText.getLength(), aRects) ) { for (MetricVector::iterator aIter = aRects.begin(); aIter != aRects.end(); ++aIter) { |