[Libreoffice-commits] core.git: sw/source

Bjoern Michaelsen bjoern.michaelsen at canonical.com
Fri Mar 7 01:20:16 PST 2014


 sw/source/core/crsr/crsrsh.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit ec62a7ed2c25e2034e9199ba8b846771d71e1d77
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Fri Mar 7 10:15:55 2014 +0100

    fdo#74854: better loose selection than crashing
    
    - this is just a bandaid
    
    Change-Id: Iebd901a9e88967e00e235f7f8849c48246e950d1

diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 3ea8d07..a351d5a 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -1494,6 +1494,13 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
                 m_pCurCrsr->SwSelPaintRects::Hide();
 
                 CheckTblBoxCntnt();
+                if(!m_pTblCrsr)
+                {
+                    SAL_WARN("sw", "fdo#74854: "
+                        "this should not happen, but better loose the selection "
+                        "rather than crashing");
+                    return;
+                }
             }
 
             SwCrsrMoveState aTmpState( MV_NONE );


More information about the Libreoffice-commits mailing list