summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-09-01 10:39:13 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-09-01 14:48:49 -0400
commitb54c1a53b4d400b1c2d282c186af1fa8f151894e (patch)
treee0edfe0eb38d942125d69e472e88515bce53981e
parent0ee265e82ea64839e559fcded4d268de721f4202 (diff)
Repaint grid view when the visible area changes.
Change-Id: I2fe1e103b3d7c6a51a2f845e27fee0cfb6309847
-rw-r--r--sc/source/ui/app/scmod.cxx5
-rw-r--r--sc/source/ui/view/gridwin2.cxx2
-rw-r--r--sc/source/ui/view/tabview4.cxx3
3 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index a643736084a4..20c216890808 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -1229,10 +1229,7 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet )
if (pViewSh)
pViewSh->EnableAutoSpell(bDoAutoSpell);
- //#92038#; don't set document modified, because this flag is no longer saved
-// pDocSh->SetDocumentModified();
-
- bRepaint = sal_True; // weil HideAutoSpell evtl. ungueltig
+ bRepaint = true; // weil HideAutoSpell evtl. ungueltig
//! alle Views painten ???
}
}
diff --git a/sc/source/ui/view/gridwin2.cxx b/sc/source/ui/view/gridwin2.cxx
index c945165cc411..2a057b5d07d1 100644
--- a/sc/source/ui/view/gridwin2.cxx
+++ b/sc/source/ui/view/gridwin2.cxx
@@ -605,7 +605,7 @@ bool ScGridWindow::UpdateVisibleRange()
if (nYBottom > MAXROW) nYBottom = MAXROW;
// Store the current visible range.
- bool bChanged = maVisibleRange.set(nPosX, nPosY, nXRight, nYBottom);
+ bool bChanged = maVisibleRange.set(nPosX, nPosY, nXRight, nYBottom);
if (bChanged)
{
if (mpSpellCheckCxt)
diff --git a/sc/source/ui/view/tabview4.cxx b/sc/source/ui/view/tabview4.cxx
index a7c4faca41cd..3aa9a47efeea 100644
--- a/sc/source/ui/view/tabview4.cxx
+++ b/sc/source/ui/view/tabview4.cxx
@@ -428,7 +428,10 @@ void ScTabView::UpdateScrollBars()
if ( aViewData.IsActive() )
{
if (UpdateVisibleRange())
+ {
SC_MOD()->AnythingChanged(); // if visible area has changed
+ PaintGrid();
+ }
}
}