[Libreoffice-commits] core.git: sc/source

Kohei Yoshida kohei.yoshida at collabora.com
Thu Jan 30 09:38:00 PST 2014


 sc/source/core/data/document10.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 3b2a30ca8cbb46a137bfd0819d3a6b84757bbcee
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Thu Jan 30 12:41:59 2014 -0500

    Prevent crash.
    
    Change-Id: Id30e6dfa14c08ecad5c15df6a79d20a5cdc50a59

diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx
index bd1e385..ae190c1 100644
--- a/sc/source/core/data/document10.cxx
+++ b/sc/source/core/data/document10.cxx
@@ -119,8 +119,11 @@ bool ScDocument::CopyOneCellFromClip(
                 {
                     bool bPaste = rCxt.isDateCell(pSrcTab->aCol[aSrcPos.Col()], aSrcPos.Row()) ? bDateTime : bNumeric;
                     if (!bPaste)
+                    {
                         // Don't paste this.
                         rSrcCell.clear();
+                        break;
+                    }
 
                     // Turn this into a numeric cell.
                     rSrcCell.set(rSrcCell.mpFormula->GetValue());


More information about the Libreoffice-commits mailing list