mib19: #i163287# fix the dialog position handling, change position after the dialog has been started

This commit is contained in:
Mikhail Voytenko
2010-08-27 15:51:26 +02:00
parent 6e9b786ff6
commit 99523481ef
2 changed files with 3 additions and 59 deletions

View File

@@ -69,6 +69,7 @@ ScVbaUserForm::Show( ) throw (uno::RuntimeException)
if ( m_xDialog.is() )
{
aRet = m_xDialog->execute();
// try to center dialog on model window
if( m_xModel.is() ) try
{
@@ -82,7 +83,6 @@ ScVbaUserForm::Show( ) throw (uno::RuntimeException)
catch( uno::Exception& )
{
}
aRet = m_xDialog->execute();
}
OSL_TRACE("ScVbaUserForm::Show() execute returned %d", aRet);
if ( mbDispose )