diff options
author | Mihaela Kedikova <misheto@openoffice.org> | 2009-11-03 14:42:58 +0000 |
---|---|---|
committer | Mihaela Kedikova <misheto@openoffice.org> | 2009-11-03 14:42:58 +0000 |
commit | 91067556c846928cfa254e05274dc1bd9fc9d3a4 (patch) | |
tree | 13da68fc608e8cbf90c227c05b986d64525786b6 /svtools | |
parent | fixes for i106470 (diff) | |
download | core-91067556c846928cfa254e05274dc1bd9fc9d3a4.tar.gz core-91067556c846928cfa254e05274dc1bd9fc9d3a4.zip |
fixes for i106470
Diffstat (limited to 'svtools')
-rwxr-xr-x | svtools/source/uno/svtxgridcontrol.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/uno/svtxgridcontrol.cxx b/svtools/source/uno/svtxgridcontrol.cxx index 73c9f091985f..2f2c896ee6a8 100755 --- a/svtools/source/uno/svtxgridcontrol.cxx +++ b/svtools/source/uno/svtxgridcontrol.cxx @@ -200,7 +200,7 @@ void SVTXGridControl::setProperty( const ::rtl::OUString& PropertyName, const An rowData = cellData[i]; std::vector<rtl::OUString> newRow( comphelper::sequenceToContainer< std::vector<rtl::OUString > >(rowData)); - if(newRow.size() < m_pTableModel->getColumnCount()) + if(newRow.size() < (unsigned)m_pTableModel->getColumnCount()) newRow.resize( m_pTableModel->getColumnCount(),rtl::OUString::createFromAscii("")); aCellContent.push_back(newRow); } @@ -308,7 +308,7 @@ void SAL_CALL SVTXGridControl::rowAdded(const ::com::sun::star::awt::grid::GridD { std::vector<OUString> aNewRow( comphelper::sequenceToContainer< std::vector<rtl::OUString > >(Event.rowData)); - if(aNewRow.size()< m_pTableModel->getColumnCount()) + if(aNewRow.size()< (unsigned)m_pTableModel->getColumnCount()) aNewRow.resize(m_pTableModel->getColumnCount(),rtl::OUString::createFromAscii("")); m_pTableModel->getCellContent().push_back(aNewRow); if(m_pTableModel->hasRowHeaders()) |