Kaydet (Commit) b54c1a53 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Repaint grid view when the visible area changes.

Change-Id: I2fe1e103b3d7c6a51a2f845e27fee0cfb6309847
üst 0ee265e8
......@@ -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 ???
}
}
......
......@@ -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)
......
......@@ -428,7 +428,10 @@ void ScTabView::UpdateScrollBars()
if ( aViewData.IsActive() )
{
if (UpdateVisibleRange())
{
SC_MOD()->AnythingChanged(); // if visible area has changed
PaintGrid();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment