[ooo-build-commit] patches/dev300 patches/vba

Noel Power noelp at kemper.freedesktop.org
Fri Jun 19 05:18:58 PDT 2009


 patches/dev300/apply                                  |    2 +
 patches/vba/vba-cursor-pos-for-selected-maxrange.diff |   24 ++++++++++++++++++
 2 files changed, 26 insertions(+)

New commits:
commit 48fbd7690bcb5e9ec8fd0694dea51498f9e14096
Author: Noel Power <noel.power at novell.com>
Date:   Fri Jun 19 13:10:29 2009 +0100

    when selecting the maximum range, ensure we scroll back to leftmost column
    
    * patches/dev300/apply:
    * patches/vba/vba-cursor-pos-for-selected-maxrange.diff:

diff --git a/patches/dev300/apply b/patches/dev300/apply
index 3579865..f51ed17 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -1843,6 +1843,8 @@ vba-fix-missing-codename.diff, n#507768
 vba-zoom-per-sheet.diff
 # fall back to doc context for active sheet if it fails
 vba-fallback-to-calling-doc-context.diff
+# when selecting full range view is not scrolled back 
+vba-cursor-pos-for-selected-maxrange.diff
 [VBAUntested]
 SectionOwner => noelpwer
 # doesn't work
diff --git a/patches/vba/vba-cursor-pos-for-selected-maxrange.diff b/patches/vba/vba-cursor-pos-for-selected-maxrange.diff
new file mode 100644
index 0000000..88e5a52
--- /dev/null
+++ b/patches/vba/vba-cursor-pos-for-selected-maxrange.diff
@@ -0,0 +1,24 @@
+diff --git sc/source/ui/view/tabview3.cxx sc/source/ui/view/tabview3.cxx
+index c71049a..1a87bfb 100644
+--- sc/source/ui/view/tabview3.cxx
++++ sc/source/ui/view/tabview3.cxx
+@@ -1439,10 +1439,15 @@ void ScTabView::MarkRange( const ScRange& rRange, BOOL bSetCursor, BOOL bContinu
+ 	{
+ 		SCCOL nAlignX = rRange.aStart.Col();
+ 		SCROW nAlignY = rRange.aStart.Row();
+-		if ( rRange.aStart.Col() == 0 && rRange.aEnd.Col() == MAXCOL )
+-			nAlignX = aViewData.GetPosX(WhichH(aViewData.GetActivePart()));
+-		if ( rRange.aStart.Row() == 0 && rRange.aEnd.Row() == MAXROW )
+-			nAlignY = aViewData.GetPosY(WhichV(aViewData.GetActivePart()));
++		bool bCol = ( rRange.aStart.Col() == 0 && rRange.aEnd.Col() == MAXCOL );
++		bool bRow = ( rRange.aStart.Row() == 0 && rRange.aEnd.Row() == MAXROW );
++		if ( !bCol && !bRow )
++		{
++			if ( bCol ) 
++				nAlignX = aViewData.GetPosX(WhichH(aViewData.GetActivePart()));
++			if ( bRow )
++				nAlignY = aViewData.GetPosY(WhichV(aViewData.GetActivePart()));
++		}
+ 		AlignToCursor( nAlignX, nAlignY, SC_FOLLOW_JUMP );
+ 	}
+ 	InitBlockMode( rRange.aStart.Col(), rRange.aStart.Row(), nTab );


More information about the ooo-build-commit mailing list