diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-05-22 12:40:25 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-05-22 15:40:50 +0200 |
commit | 4ee802917bd37665df3fe4116eb31b2a9f6be494 (patch) | |
tree | c0f8795a413f4d5b5762146a15248497bcccf56d /sc/source/ui/app/inputwin.cxx | |
parent | aaf14d96cd9d2273e7828bfa3bd496fc9cb1d61e (diff) |
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/source/ui/app/inputwin.cxx')
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |