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

Update visible ranges when updating the scroll bars.

That seems like the right place to update visible ranges, rather than
right before drawing the grid pane.

Change-Id: I230bfa753fca7bcd040bd55dba16dfa613d2e8f0
üst 0d5b9f1a
......@@ -401,8 +401,6 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
OSL_ENSURE( ValidCol(nX2) && ValidRow(nY2), "GridWin Draw Bereich zu gross" );
UpdateVisibleRange();
if (nX2 < maVisibleRange.mnCol1 || nY2 < maVisibleRange.mnRow1)
return;
// unsichtbar
......
......@@ -439,6 +439,8 @@ void ScTabView::UpdateScrollBars()
ScRange aVisible( nPosX, nPosY, nTab, nEndX, nEndY, nTab );
if ( pDoc->SetVisibleSpellRange( aVisible ) )
SC_MOD()->AnythingChanged(); // if visible area has changed
UpdateVisibleRange();
}
}
......
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