summaryrefslogtreecommitdiff
path: root/svtools/source/uno/unocontroltablemodel.cxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-01-07 15:52:55 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-01-07 15:52:55 +0100
commitee6e84390f6ed66e26aec1a6f41aa870b4637ee7 (patch)
tree3478ceaeaabffc8e2f735be16b590ba25555038a /svtools/source/uno/unocontroltablemodel.cxx
parentce87fad0a9eba1247450d34140d44e234523cdf5 (diff)
gridsort: do not retrieve all row headers at once, this doesn't scale. Instead, allow to retrieve the header/title of a row given by index
Diffstat (limited to 'svtools/source/uno/unocontroltablemodel.cxx')
-rw-r--r--svtools/source/uno/unocontroltablemodel.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/svtools/source/uno/unocontroltablemodel.cxx b/svtools/source/uno/unocontroltablemodel.cxx
index 91ad989a26c1..29d33d0526ee 100644
--- a/svtools/source/uno/unocontroltablemodel.cxx
+++ b/svtools/source/uno/unocontroltablemodel.cxx
@@ -532,10 +532,7 @@ namespace svt { namespace table
try
{
- Sequence< ::rtl::OUString > const aRowHeaders( xDataModel->getRowHeaders() );
- ENSURE_OR_RETURN( ( i_rowPos >= 0 ) && ( i_rowPos < aRowHeaders.getLength() ),
- "UnoControlTableModel::getRowHeader: illegal row position!", sRowHeader );
- sRowHeader = aRowHeaders[ i_rowPos ];
+ sRowHeader = xDataModel->getRowTitle( i_rowPos );
}
catch( const Exception& )
{