summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-21 00:20:52 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-22 21:49:20 -0400
commit3dd9f732afc7083809794e7626b11a4b7ca6dae5 (patch)
treeb8c72e231ca8a1925ae8a6e76192360e7991589a /sc
parentMore on reducing the use of ScDocument::PutCell(). (diff)
downloadcore-3dd9f732afc7083809794e7626b11a4b7ca6dae5.tar.gz
core-3dd9f732afc7083809794e7626b11a4b7ca6dae5.zip
Forgot to add break here...
Change-Id: I4350c05bdf72c9b582da3b156dc398ea407efa24
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/undo/undocell.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx
index 878a0772f1bf..76fa36e56d5c 100644
--- a/sc/source/ui/undo/undocell.cxx
+++ b/sc/source/ui/undo/undocell.cxx
@@ -516,6 +516,7 @@ ScUndoSetCell::Value::Value( const Value& r ) : meType(r.meType), mfValue(r.mfVa
break;
case CELLTYPE_FORMULA:
mpFormula = r.mpFormula->Clone();
+ break;
default:
;
}
@@ -530,8 +531,10 @@ ScUndoSetCell::Value::~Value()
break;
case CELLTYPE_EDIT:
delete mpEditText;
+ break;
case CELLTYPE_FORMULA:
mpFormula->Delete();
+ break;
default:
;
}