summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/filter/oox/sheetdatacontext.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/filter/oox/sheetdatacontext.cxx b/sc/source/filter/oox/sheetdatacontext.cxx
index 9a0f7dfd83f6..227c1d9783f5 100644
--- a/sc/source/filter/oox/sheetdatacontext.cxx
+++ b/sc/source/filter/oox/sheetdatacontext.cxx
@@ -278,7 +278,10 @@ void SheetDataContext::importRow( const AttributeList& rAttribs )
RowModel aModel;
sal_Int32 nRow = rAttribs.getInteger( XML_r, -1 );
if(nRow != -1)
- aModel.mnRow = nRow;
+ {
+ aModel.mnRow = nRow;
+ mnRow = nRow;
+ }
else
aModel.mnRow = ++mnRow;
mnCol = -1;