summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwsh3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/tabvwsh3.cxx')
-rw-r--r--sc/source/ui/view/tabvwsh3.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx
index 606755a7c42f..4ea02a9fde79 100644
--- a/sc/source/ui/view/tabvwsh3.cxx
+++ b/sc/source/ui/view/tabvwsh3.cxx
@@ -896,13 +896,21 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
break;
case SID_WINDOW_FIX:
+ case SID_WINDOW_FIX_COL:
+ case SID_WINDOW_FIX_ROW:
{
+ SplitMethod eSplitMethod = SC_SPLIT_METHOD_CURSOR;
+ if (nSlot == SID_WINDOW_FIX_COL)
+ eSplitMethod = SC_SPLIT_METHOD_FIRST_COL;
+ else if (nSlot == SID_WINDOW_FIX_ROW)
+ eSplitMethod = SC_SPLIT_METHOD_FIRST_ROW;
+
ScSplitMode eHSplit = GetViewData().GetHSplitMode();
ScSplitMode eVSplit = GetViewData().GetVSplitMode();
if ( eHSplit == SC_SPLIT_FIX || eVSplit == SC_SPLIT_FIX ) // remove
RemoveSplit();
else
- FreezeSplitters( true ); // create or fixate
+ FreezeSplitters( true, eSplitMethod); // create or fixate
rReq.Done();
InvalidateSplit();