summaryrefslogtreecommitdiffstats
path: root/svx/source/dialog
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-03-06 22:25:55 +0100
committerMichael Stahl <mstahl@redhat.com>2014-03-07 00:27:02 +0100
commit958616a323b7fe6b42cd642394cd90a9cd82e7f9 (patch)
tree8adb85f01d2734308bfae838309584406ff7f2b2 /svx/source/dialog
parentuse WeakImplHelper2 for UcbPropertiesManager (diff)
downloadcore-958616a323b7fe6b42cd642394cd90a9cd82e7f9.tar.gz
core-958616a323b7fe6b42cd642394cd90a9cd82e7f9.zip
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/source/dialog')
-rw-r--r--svx/source/dialog/svxruler.cxx3
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;