diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-03-07 10:15:55 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-03-07 10:19:13 +0100 |
commit | ec62a7ed2c25e2034e9199ba8b846771d71e1d77 (patch) | |
tree | 7304febf60f7d8255780bf09480188e3e05bddd9 | |
parent | c6b99eedda03461202f9bf012a422dfd81da72ec (diff) |
fdo#74854: better loose selection than crashing
- this is just a bandaid
Change-Id: Iebd901a9e88967e00e235f7f8849c48246e950d1
-rw-r--r-- | sw/source/core/crsr/crsrsh.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index 3ea8d07d3b28..a351d5a7eb0e 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 ); |