libreoffice/libreoffice-3.3.1.2-bug-34026-Get-correct-current-position.patch

28 lines
739 B
Diff
Raw Normal View History

--- sc/source/ui/view/tabview2.cxx 2010-11-30 11:58:44.000000000 +0100
+++ sc/source/ui/view/tabview2.cxx-gil 2011-03-03 15:46:52.000000000 +0100
@@ -410,7 +410,23 @@
{
SCCOL nCurX;
SCROW nCurY;
- aViewData.GetMoveCursor( nCurX,nCurY );
+ if (aViewData.IsRefMode())
+ {
+ nCurX = aViewData.GetRefEndX();
+ nCurY = aViewData.GetRefEndY();
+ }
+ else if (IsBlockMode())
+ {
+ // block end position.
+ nCurX = nBlockEndX;
+ nCurY = nBlockEndY;
+ }
+ else
+ {
+ // cursor position
+ nCurX = aViewData.GetCurX();
+ nCurY = aViewData.GetCurY();
+ }
ScSplitPos eWhich = aViewData.GetActivePart();
ScHSplitPos eWhichX = WhichH( eWhich );