[Libreoffice-commits] core.git: scripting/source

Miklos Vajna vmiklos at suse.cz
Fri May 24 04:07:00 PDT 2013


 scripting/source/dlgprov/dlgprov.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2e2a4827ce6708f0e8677dba9cc92e1479a44086
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Fri May 24 12:52:25 2013 +0200

    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 at suse.cz>
    Tested-by: Miklos Vajna <vmiklos at suse.cz>

diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx
index 8c645a3..2d96b9d 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;


More information about the Libreoffice-commits mailing list