diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-03-06 22:25:55 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2014-03-07 06:45:23 -0600 |
commit | 58d0ba47f82e264e9b17c0e0d37bc043126d195d (patch) | |
tree | 187cda71349e723dc968105e9be14d558b5a5b9b /svx | |
parent | 0f6431dd4d9b91e3819abee35ebc946c800f53fd (diff) |
rhbz#1072607: (hopefully) fix crash in SvxRuler::MouseMove()
Not sure why mpParaItem is 0 here, add a check like in every other
SvxRuler method.
(regression from 47a77d7dbc427e51421e2df8d59695834cb74980)
Change-Id: Ic11a4d0c9b6ca217cd59d1d3f6789592996d2c1d
(cherry picked from commit 958616a323b7fe6b42cd642394cd90a9cd82e7f9)
Reviewed-on: https://gerrit.libreoffice.org/8492
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index a41d0e07d5e2..ca16c178bf2d 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -580,6 +580,9 @@ void SvxRuler::MouseMove( const MouseEvent& rMEvt ) { case RULER_TYPE_INDENT: { + if (!mpParaItem.get()) + break; + long nIndex = aSelection.nAryPos + INDENT_GAP; long nIndentValue = 0.0; |