summaryrefslogtreecommitdiff
path: root/starmath/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-13 14:05:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-13 14:05:42 +0100
commit75082b5c6ff65a5bf428c2900d665d727628e53f (patch)
treeb0e8700a3d4c7010b616d0c1e54d01e31e105ca0 /starmath/qa
parent97b949d6f4cf0eaa6c2ae8a46d8e0f128ee825af (diff)
enter and leave registrations to keep asserts happy
Diffstat (limited to 'starmath/qa')
-rw-r--r--starmath/qa/cppunit/test_starmath.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx
index b19ead0caeaf..40e058bd0598 100644
--- a/starmath/qa/cppunit/test_starmath.cxx
+++ b/starmath/qa/cppunit/test_starmath.cxx
@@ -132,7 +132,9 @@ void Test::setUp()
m_pDispatcher = new SfxDispatcher(pViewFrame);
m_aBindings.SetDispatcher(m_pDispatcher);
+ m_aBindings.EnterRegistrations();
m_pSmCmdBoxWindow = new SmCmdBoxWindow(&m_aBindings, NULL, NULL);
+ m_aBindings.LeaveRegistrations();
m_pEditWindow = new SmEditWindow(*m_pSmCmdBoxWindow);
m_pViewShell = m_pEditWindow->GetView();
CPPUNIT_ASSERT_MESSAGE("Should have a SmViewShell", m_pViewShell);