diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-29 16:11:56 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-29 16:14:57 -0400 |
commit | 8acb68bae5319836a8c0c9fa6ddfc907b0dd6c48 (patch) | |
tree | bd8e54722de84aa24c9c80d3f734ce12d2128d05 /sc/source/ui/view/tabview.cxx | |
parent | 391a57ef65687f2e373bac8d410e551aafa780ec (diff) |
Check whether or not a visible range has changed.
Change-Id: I83581c8964ff43af1b1c42df82236274db446953
Diffstat (limited to 'sc/source/ui/view/tabview.cxx')
-rw-r--r-- | sc/source/ui/view/tabview.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index 5a431dc41ac8..a83fba24942c 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -1544,15 +1544,19 @@ void ScTabView::UpdateShow() //! neue Gridwindows eintragen } -void ScTabView::UpdateVisibleRange() +bool ScTabView::UpdateVisibleRange() { + bool bChanged = false; for (int i = 0; i < 4; ++i) { if (!pGridWin[i] || !pGridWin[i]->IsVisible()) continue; - pGridWin[i]->UpdateVisibleRange(); + if (pGridWin[i]->UpdateVisibleRange()) + bChanged = true; } + + return bChanged; } // --- Splitter -------------------------------------------------------- |