diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-11-29 19:20:22 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2010-11-29 19:20:22 -0500 |
commit | 84ab11c230846101b6c77efc88cdf4d25f2a3a87 (patch) | |
tree | 4d7eea32c745845204a53b25d95072ca32de9b4b /sc/source/ui/view/tabview.cxx | |
parent | 0723039f40ca98a5e80ff8d1f9981428becc03b4 (diff) |
Re-calculate visible range when switching sheets.
Visible range of the current sheet is used to decide whether or not
to render cell cursor. Failing to do that was causing the cursor
to disappear when switching sheets while the cursor on the current
sheet was invisible. (fdo#31753)
Diffstat (limited to 'sc/source/ui/view/tabview.cxx')
-rw-r--r-- | sc/source/ui/view/tabview.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index 01877252b078..195015c72c54 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -1691,6 +1691,17 @@ void ScTabView::UpdateShow() //! neue Gridwindows eintragen } +void ScTabView::UpdateVisibleRange() +{ + for (int i = 0; i < 4; ++i) + { + if (!pGridWin[i]) + continue; + + pGridWin[i]->UpdateVisibleRange(); + } +} + // --- Splitter -------------------------------------------------------- IMPL_LINK( ScTabView, SplitHdl, Splitter*, pSplitter ) |