diff options
author | Eike Rathke <erack@redhat.com> | 2017-08-31 15:26:35 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-08-31 15:27:51 +0200 |
commit | 13787b61d2fa4ef5e61a41e4bb0424a870dc03bf (patch) | |
tree | 32fa3aba9312e3457bae1187c7f67d526b3aa7e7 /sc | |
parent | e601a2cf161a833a74ac02bb431cfde8ad965fa1 (diff) |
SYLK import: init nRefCol,nRefRow with start col,row instead of 1,1
So in a malformed document that does not specify ;X;Y;C;R before ;M a 1x1
matrix formula is created at nStartCol,nStartRow instead of 2x2
Change-Id: Idcc0f9d8c65bb142587fa6419af6f4dcb6209a0e
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/impex.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx index a202ce30b36a..0a68d360fade 100644 --- a/sc/source/ui/docshell/impex.cxx +++ b/sc/source/ui/docshell/impex.cxx @@ -1729,8 +1729,8 @@ bool ScImportExport::Sylk2Doc( SvStream& rStrm ) OString aByteLine; SCCOL nCol = nStartCol; SCROW nRow = nStartRow; - SCCOL nRefCol = 1; - SCROW nRefRow = 1; + SCCOL nRefCol = nCol; + SCROW nRefRow = nRow; rStrm.Seek( nOldPos ); for( ;; ) { |