sc/source/ui/docshell/impex.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 13787b61d2fa4ef5e61a41e4bb0424a870dc03bf Author: Eike Rathke <er...@redhat.com> Date: Thu Aug 31 15:26:35 2017 +0200 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 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( ;; ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits