sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit 6af028a2973d7a729293a09a92c7b1bd1bf4eadb
Author:     Justin Luth <[email protected]>
AuthorDate: Sat Sep 27 18:42:49 2025 -0400
Commit:     Justin Luth <[email protected]>
CommitDate: Sun Sep 28 02:32:34 2025 +0200

    tdf#152817 SwSpellDialogChildWindow: remove irritating OSL_ENSURE
    
    These are assert alternatives, right?
    Well, it asserts something that is not (and cannot easily be) true.
    So just remove this 2004 code development helper assert.
    
    Change-Id: I88e1b01aaa6cb6a51e289c1b024815e504300392
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191574
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <[email protected]>

diff --git a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx 
b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
index 4a10b6e6ce25..14b084f8552f 100644
--- a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
+++ b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
@@ -461,7 +461,6 @@ The code below would only be part of the solution.
 void SwSpellDialogChildWindow::ApplyChangedSentence(const svx::SpellPortions& 
rChanged, bool bRecheck)
 {
     SwWrtShell* pWrtShell = GetWrtShell_Impl();
-    OSL_ENSURE(!m_pSpellState->m_bInitialCall, "ApplyChangedSentence in 
initial call or after resume");
     if(!pWrtShell || m_pSpellState->m_bInitialCall)
         return;
 

Reply via email to