diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-03-07 10:15:55 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-07 05:23:54 -0600 |
commit | 0f6431dd4d9b91e3819abee35ebc946c800f53fd (patch) | |
tree | c963b5b9ea2ceb4af54d658bd49c47f00ba4943f | |
parent | 385c54367fe1f7453ff9127de79251deaf28cdee (diff) |
fdo#74854: better loose selection than crashing
- this is just a bandaid
Change-Id: Iebd901a9e88967e00e235f7f8849c48246e950d1
Reviewed-on: https://gerrit.libreoffice.org/8491
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
-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 b51c3cc8a835..5241423f05fb 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -1428,6 +1428,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 ); |