summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfunc.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-09-01 14:31:36 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-09-01 14:48:50 -0400
commit0044fc8a722f3e52c8053b10f5032171f82b508f (patch)
tree8af1f0a69d62086b5f2fe88ecfe5b683ca87a0b1 /sc/source/ui/view/viewfunc.cxx
parentb796e268630dd02f35a312b84867f63b3fa8da2f (diff)
Reset auto spell data in the view shell instead of in the doc shell.
It makes more sense that way. Change-Id: Ib2e2167228b1c2a2a19a750477652e18ae69d105
Diffstat (limited to 'sc/source/ui/view/viewfunc.cxx')
-rw-r--r--sc/source/ui/view/viewfunc.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 2096db70e562..6e026fb6aa42 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -1489,6 +1489,7 @@ sal_Bool ScViewFunc::InsertCells( InsCellCmd eCmd, sal_Bool bRecord, sal_Bool bP
{
pDocSh->UpdateOle(GetViewData());
CellContentChanged();
+ ResetAutoSpell();
// #i97876# Spreadsheet data changes are not notified
ScModelObj* pModelObj = ScModelObj::getImplementation( pDocSh->GetModel() );
@@ -1552,6 +1553,7 @@ void ScViewFunc::DeleteCells( DelCellCmd eCmd, sal_Bool bRecord )
pDocSh->UpdateOle(GetViewData());
CellContentChanged();
+ ResetAutoSpell();
// #i97876# Spreadsheet data changes are not notified
ScModelObj* pModelObj = ScModelObj::getImplementation( pDocSh->GetModel() );
@@ -1750,6 +1752,8 @@ void ScViewFunc::DeleteMulti( sal_Bool bRows, sal_Bool bRecord )
pDocSh->PostPaint( static_cast<SCCOL>(pRanges[0]),0,nTab,
MAXCOL,MAXROW,nTab, PAINT_GRID | PAINT_TOP );
}
+
+ ResetAutoSpell();
aModificator.SetDocumentModified();
CellContentChanged();