enter and leave registrations to keep asserts happy
This commit is contained in:
parent
97b949d6f4
commit
75082b5c6f
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue