Kaydet (Commit) 36d950fb authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Let's not over-activate tab controls unnecessarily.

This interfares with the preview shell passing selected tabs back to
the view shell, by always selecting the first tab unconditionally.

The tabs get painted fine even without this call, so let's remove it.
üst 654c4be0
...@@ -79,7 +79,6 @@ public: ...@@ -79,7 +79,6 @@ public:
void UpdateInputContext(); void UpdateInputContext();
void UpdateStatus(); void UpdateStatus();
void ActivateView(sal_Bool bActivate);
void SetSheetLayoutRTL( sal_Bool bSheetRTL ); void SetSheetLayoutRTL( sal_Bool bSheetRTL );
}; };
......
...@@ -377,22 +377,6 @@ void ScTabControl::UpdateStatus() ...@@ -377,22 +377,6 @@ void ScTabControl::UpdateStatus()
} }
} }
void ScTabControl::ActivateView(sal_Bool bActivate)
{
ScMarkData& rMark = pViewData->GetMarkData();
sal_uInt16 nCurId = GetCurPageId();
if (!nCurId) return; // kann vorkommen, wenn bei Excel-Import alles versteckt ist
sal_uInt16 nPage = nCurId - 1;
if (bActivate)
{
SelectPage( nPage+1, sal_True );
rMark.SelectTable( static_cast<SCTAB>(nPage), sal_True );
}
Invalidate();
}
void ScTabControl::SetSheetLayoutRTL( sal_Bool bSheetRTL ) void ScTabControl::SetSheetLayoutRTL( sal_Bool bSheetRTL )
{ {
SetEffectiveRTL( bSheetRTL ); SetEffectiveRTL( bSheetRTL );
......
...@@ -2291,7 +2291,7 @@ void ScTabView::ActivateView( bool bActivate, bool bFirst ) ...@@ -2291,7 +2291,7 @@ void ScTabView::ActivateView( bool bActivate, bool bFirst )
pHdl->EnterHandler(); pHdl->EnterHandler();
} }
} }
pTabControl->ActivateView(bActivate);
PaintExtras(); PaintExtras();
aViewData.Activate(bActivate); aViewData.Activate(bActivate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment