[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Thu Feb 17 12:33:38 PST 2011


 sc/source/ui/view/tabview2.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit f3df9f8674d559d38b638396cd48c9eb8f0ecca6
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Thu Feb 17 15:30:42 2011 -0500

    Properly update column and row header selections. (fdo#34383)
    
    When making range selection by mouse, Calc wouldn't highlight the
    new range in the column and row headers.  It was because we weren't
    calling ScTabView::SelectionChanged() when the selection range
    is updated.  This SelectionChanged() call then puts in queue a
    re-paint request for column and row headers.

diff --git a/sc/source/ui/view/tabview2.cxx b/sc/source/ui/view/tabview2.cxx
index e51c198..ce9800c 100644
--- a/sc/source/ui/view/tabview2.cxx
+++ b/sc/source/ui/view/tabview2.cxx
@@ -356,6 +356,7 @@ void ScTabView::MarkCursor( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ,
         rMark.SetMarkArea( ScRange( nBlockStartX, nBlockStartY, nTab, nBlockEndX, nBlockEndY, nTab ) );
 
         UpdateSelectionOverlay();
+        SelectionChanged();
 
         nOldCurX = nCurX;
         nOldCurY = nCurY;


More information about the Libreoffice-commits mailing list