[ooo-build-commit] patches/dev300

Kohei Yoshida kohei at kemper.freedesktop.org
Tue Jun 16 08:55:36 PDT 2009


 patches/dev300/calc-selection-fixed-cursor.diff |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

New commits:
commit c15cdcaa1a091d29c11bad86ea934818304c4510
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Tue Jun 16 11:37:46 2009 -0400

    Fixed formula reference selection which did not scroll when going off-screen.
    
    When making a range selection during formula input, Calc marks the selection
    with red border.  When the tip of the border went outside the visible area,
    it would not scroll the grid area.  This commit fixes that bug. (n#512060)
    
    * patches/dev300/calc-selection-fixed-cursor.diff:

diff --git a/patches/dev300/calc-selection-fixed-cursor.diff b/patches/dev300/calc-selection-fixed-cursor.diff
index aa3ceec..4021847 100644
--- a/patches/dev300/calc-selection-fixed-cursor.diff
+++ b/patches/dev300/calc-selection-fixed-cursor.diff
@@ -20,10 +20,10 @@ index de89b1b..8ba6dfa 100644
  
 +void ScDocument::SkipOverlapped( SCCOL& rCol, SCROW& rRow, SCTAB nTab ) const
 +{
-+	while (IsHorOverlapped(rCol, rRow, nTab))
-+		--rCol;
-+	while (IsVerOverlapped(rCol, rRow, nTab))
-+		--rRow;
++    while (IsHorOverlapped(rCol, rRow, nTab))
++        --rCol;
++    while (IsVerOverlapped(rCol, rRow, nTab))
++        --rRow;
 +}
  
  BOOL ScDocument::IsHorOverlapped( SCCOL nCol, SCROW nRow, SCTAB nTab ) const
@@ -333,7 +333,7 @@ index bd9515c..bd744e4 100644
  void ScTabView::DoneBlockMode( BOOL bContinue )            // Default FALSE
  {
      //	Wenn zwischen Tabellen- und Header SelectionEngine gewechselt wird,
-@@ -414,6 +408,289 @@ void ScTabView::MarkCursor( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ,
+@@ -414,6 +408,290 @@ void ScTabView::MarkCursor( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ,
          aHdrFunc.SetAnchorFlag( FALSE );
  }
  
@@ -575,6 +575,7 @@ index bd9515c..bd744e4 100644
 +
 +        pDoc->SkipOverlapped(nNewX, nNewY, nRefTab);
 +        UpdateRef(nNewX, nNewY, nRefTab);
++        AlignToCursor(nNewX, nNewY, eMode);
 +    }
 +    else
 +    {


More information about the ooo-build-commit mailing list