Kaydet (Commit) 55c6f5f3 authored tarafından Michael Meeks's avatar Michael Meeks

sc: force vba events ordering.

Otherwise we get workbook load events (eg.) happening at idle, which
occurs at (more or less) random places as the StarBasic interpreter
Yields every few instructions executed.

Change-Id: I51ea57f4ad45e30e04fe84a9dc051ed1c5537536
üst 2092a458
......@@ -306,6 +306,11 @@ void ScMacrosTest::testVba()
OUString sMsg( "Failed to load " + aFileName );
CPPUNIT_ASSERT_MESSAGE( OUStringToOString( sMsg, RTL_TEXTENCODING_UTF8 ).getStr(), xComponent.is() );
// process all events such as OnLoad events etc.
// otherwise the tend to arrive later at a random
// time - while processing other StarBasic methods.
Application::Reschedule(true);
Any aRet;
Sequence< sal_Int16 > aOutParamIndex;
Sequence< Any > aOutParam;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment