diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-05-24 12:52:25 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-05-24 11:06:40 +0000 |
commit | 2e2a4827ce6708f0e8677dba9cc92e1479a44086 (patch) | |
tree | 69c3d2d32d197625292aa31e07252fa870db0660 /scripting | |
parent | 02d03eb4ad6e64744659c5fe04282b25b66c28d8 (diff) |
scripting: get CreateUnoDialog() work again
Trivial reproducer:
Dim Dlg As Object
DialogLibraries.LoadLibrary("Standard")
Dlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1)
Dlg.Execute()
Dlg.dispose()
Regression from 6c61b20a8d4a6dcac28801cde82a211fb7e30654.
Change-Id: Ia62778c6d94f54e6097a307701e5c81be847665d
Reviewed-on: https://gerrit.libreoffice.org/4023
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/dlgprov/dlgprov.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx index 8c645a3569b9..2d96b9d2ff74 100644 --- a/scripting/source/dlgprov/dlgprov.cxx +++ b/scripting/source/dlgprov/dlgprov.cxx @@ -149,9 +149,10 @@ static OUString aResourceResolverPropName("ResourceResolver"); // Set resource property if( xStringResourceManager.is() ) { + Reference< beans::XPropertySet > xDlgPSet( xDialogModel, UNO_QUERY ); Any aStringResourceManagerAny; aStringResourceManagerAny <<= xStringResourceManager; - xDialogModel->setPropertyValue( aResourceResolverPropName, aStringResourceManagerAny ); + xDlgPSet->setPropertyValue( aResourceResolverPropName, aStringResourceManagerAny ); } return xDialogModel; |