This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch AOO50X
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 308d2cf67d9706d4e5b5213d8f790827cc61e167
Author: Jim Jagielski <[email protected]>
AuthorDate: Mon Nov 16 07:52:29 2026 -0500

    sc: clear the input window pointer of hidden views too
    
    A document loaded hidden kept a pointer to the destroyed input window and
    crashed when it was closed.
    
    (cherry picked from commit 16867dd49210a1f8badb2f173236f8472f97272a)
---
 main/sc/source/ui/app/inputwin.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/sc/source/ui/app/inputwin.cxx 
b/main/sc/source/ui/app/inputwin.cxx
index dd34f0b1fa..1df9ac7ed0 100644
--- a/main/sc/source/ui/app/inputwin.cxx
+++ b/main/sc/source/ui/app/inputwin.cxx
@@ -233,7 +233,7 @@ __EXPORT ScInputWindow::~ScInputWindow()
        if ( !bDown )
        {
                TypeId aScType = TYPE(ScTabViewShell);
-               SfxViewShell* pSh = SfxViewShell::GetFirst( &aScType );
+               SfxViewShell* pSh = SfxViewShell::GetFirst( &aScType, sal_False 
);
                while ( pSh )
                {
                        ScInputHandler* pHdl = 
((ScTabViewShell*)pSh)->GetInputHandler();
@@ -242,7 +242,7 @@ __EXPORT ScInputWindow::~ScInputWindow()
                                pHdl->SetInputWindow( NULL );
                 pHdl->StopInputWinEngine( sal_False );  // #125841# reset 
pTopView pointer
             }
-                       pSh = SfxViewShell::GetNext( *pSh, &aScType );
+                       pSh = SfxViewShell::GetNext( *pSh, &aScType, sal_False 
);
                }
        }
 

Reply via email to