sc/source/core/data/document10.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit b2707c0545d7cc762a9ccfbb8a3b3cea495195e2 Author: Matthew J. Francis <mjay.fran...@gmail.com> Date: Thu Oct 9 13:02:18 2014 +0800 fdo#84810 Avoid calc crash when using Paste Special - Link Change-Id: I52c072578ccc0b9f75a850613056e74d400eb532 Reviewed-on: https://gerrit.libreoffice.org/11867 Reviewed-by: Kohei Yoshida <libreoff...@kohei.us> Tested-by: Kohei Yoshida <libreoff...@kohei.us> (cherry picked from commit 2b6619c597a791775e2d41a68f7e85ef75d1aaa2) Reviewed-on: https://gerrit.libreoffice.org/11875 diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx index e468dd3..baf7314 100644 --- a/sc/source/core/data/document10.cxx +++ b/sc/source/core/data/document10.cxx @@ -76,6 +76,8 @@ bool ScDocument::CopyOneCellFromClip( return false; ScCellValue& rSrcCell = rCxt.getSingleCell(); + const ScPatternAttr* pAttr = pClipDoc->GetPattern(aSrcPos); + rCxt.setSingleCellPattern(pAttr); if (rCxt.isAsLink()) { ScSingleRefData aRef; @@ -89,8 +91,6 @@ bool ScDocument::CopyOneCellFromClip( else { rSrcCell.set(pClipDoc->GetRefCellValue(aSrcPos)); - const ScPatternAttr* pAttr = pClipDoc->GetPattern(aSrcPos); - rCxt.setSingleCellPattern(pAttr); // Check the paste flag to see whether we want to paste this cell. If the // flag says we don't want to paste this cell, we'll return with true. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits