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

Kohei Yoshida kohei.yoshida at collabora.com
Thu Jan 30 09:59:23 PST 2014


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

New commits:
commit 862bec45fa81b5583e764abf845c14689b339753
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Thu Jan 30 13:03:10 2014 -0500

    This could cause crasher too.
    
    Change-Id: I47d9ad36937bf07cd0b79fa5eec7710ce84ce4a9

diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx
index ae190c1..d36df55 100644
--- a/sc/source/core/data/document10.cxx
+++ b/sc/source/core/data/document10.cxx
@@ -132,8 +132,11 @@ bool ScDocument::CopyOneCellFromClip(
                 {
                     svl::SharedString aStr = rSrcCell.mpFormula->GetString();
                     if (aStr.isEmpty())
+                    {
                         // do not clone empty string
                         rSrcCell.clear();
+                        break;
+                    }
 
                     // Turn this into a string or edit cell.
                     if (rSrcCell.mpFormula->IsMultilineResult())


More information about the Libreoffice-commits mailing list