diff options
Diffstat (limited to 'sc/source/core/tool/consoli.cxx')
-rw-r--r-- | sc/source/core/tool/consoli.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/consoli.cxx b/sc/source/core/tool/consoli.cxx index 0d1e1f16fddf..dae69f4b01f0 100644 --- a/sc/source/core/tool/consoli.cxx +++ b/sc/source/core/tool/consoli.cxx @@ -459,7 +459,7 @@ void ScConsData::OutputToDocument( ScDocument* pDestDoc, SCCOL nCol, SCROW nRow, if (nNeeded) { - pDestDoc->InsertRow( 0,nTab, MAXCOL,nTab, nRow+nArrY, nNeeded ); + pDestDoc->InsertRow( 0,nTab, pDestDoc->MaxCol(),nTab, nRow+nArrY, nNeeded ); for (nArrX=0; nArrX<nColCount; nArrX++) if (ppUsed[nArrX][nArrY]) |