sc/source/ui/app/inputwin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 4ee802917bd37665df3fe4116eb31b2a9f6be494 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed May 22 12:40:25 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed May 22 15:40:50 2024 +0200 Partially revert 860d11230d6 "sc: check GetActiveViewShell()" See https://gerrit.libreoffice.org/c/core/+/167923/comment/3b02cf2c_feea2a9f/ Change-Id: I54f9609c934c5d56528fc4175462ff1d4deffaae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167951 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index f39139b7b6e7..e447045e4b51 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -1722,6 +1722,7 @@ bool ScTextWnd::Command( const CommandEvent& rCEvt ) if (m_xEditView) { ScModule* pScMod = SC_MOD(); + ScTabViewShell* pStartViewSh = ScTabViewShell::GetActiveViewShell(); // don't modify the font defaults here - the right defaults are // already set in StartEditEngine when the EditEngine is created @@ -1739,7 +1740,6 @@ bool ScTextWnd::Command( const CommandEvent& rCEvt ) { // Is dragged onto another View? ScTabViewShell* pEndViewSh = ScTabViewShell::GetActiveViewShell(); - ScTabViewShell* pStartViewSh = ScTabViewShell::GetActiveViewShell(); if ( pEndViewSh != pStartViewSh && pStartViewSh != nullptr ) { ScViewData& rViewData = pStartViewSh->GetViewData();