diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-03-06 22:25:55 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-03-07 00:27:02 +0100 |
commit | 958616a323b7fe6b42cd642394cd90a9cd82e7f9 (patch) | |
tree | 8adb85f01d2734308bfae838309584406ff7f2b2 /svx | |
parent | 1b2b8f8d5aa1e402c31ee9853dd0ec229d3a32b7 (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
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 9a51bcb8544c..80e3b4df9894 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -581,6 +581,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; |