sc/source/ui/view/tabvwsh4.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 580115275da91e8a591ecc94e6bf4b62f801cf60
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Thu Oct 13 09:16:35 2022 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Thu Oct 13 15:14:47 2022 +0200

    tdf#150664 Initialize input line correctly
    
    Initialize code was not called when xlsx file was loaded
    (line count is only stored in ods format).
    
    Change-Id: I5b01f6079921af77ffd6da09ae5d5388b8beff1c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141281
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>

diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx
index 9bd541a04d03..c0a8ae702257 100644
--- a/sc/source/ui/view/tabvwsh4.cxx
+++ b/sc/source/ui/view/tabvwsh4.cxx
@@ -133,7 +133,7 @@ void ScTabViewShell::Activate(bool bMDI)
                 ScInputWindow* pWin = 
static_cast<ScInputWindow*>(pChild->GetWindow());
                 if (pWin && pWin->IsVisible())
                 {
-
+                    pWin->NumLinesChanged(); // tdf#150664
                     ScInputHandler* pOldHdl=pWin->GetInputHandler();
 
                     SfxViewShell* pSh = SfxViewShell::GetFirst( true, 
checkSfxViewShell<ScTabViewShell> );

Reply via email to