summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/fmcomp/fmgridif.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx
index a00d153fb648..6fcd0d790665 100644
--- a/svx/source/fmcomp/fmgridif.cxx
+++ b/svx/source/fmcomp/fmgridif.cxx
@@ -728,13 +728,17 @@ void SAL_CALL FmXGridControl::setDesignMode(sal_Bool bOn)
}
}
+ // Avoid infinite recursion when calling XVclWindowPeer::setDesignMode below
mbDesignMode = bOn;
Reference< XVclWindowPeer > xVclWindowPeer( getPeer(), UNO_QUERY );
if (xVclWindowPeer.is())
xVclWindowPeer->setDesignMode(bOn);
}
- mbDesignMode = bOn;
+ else
+ {
+ mbDesignMode = bOn;
+ }
// dispose our current AccessibleContext, if we have one
// (changing the design mode implies having a new implementation for this context,