summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unotbl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 38b2d0577ea0..e98982ef8072 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -4147,7 +4147,7 @@ void SwXCellRange::setColumnDescriptions(const uno::Sequence<OUString>& rColumnD
const OUString* pArray = rColumnDesc.getConstArray();
for(sal_uInt16 i = nStart; i < nColumnCount; i++)
{
- uno::Reference<table::XCell> xCell = getCellByPosition(0, i);
+ uno::Reference<table::XCell> xCell = getCellByPosition(i, 0);
if(!xCell.is())
throw uno::RuntimeException();
uno::Reference<text::XText> xText(xCell, uno::UNO_QUERY);