[processing] Fix exception when parameter metadata is set to extend inbuilt wrapper type

This commit is contained in:
Nyall Dawson 2018-11-27 20:24:08 +10:00
parent d72c4d001f
commit 59d2c5301f

View File

@ -1773,7 +1773,7 @@ class WidgetWrapperFactory:
@staticmethod
def create_wrapper(param, dialog, row=0, col=0):
if param.metadata().get('widget_wrapper', None) is not None:
if param.metadata().get('widget_wrapper', {}).get('class', None) is not None:
return WidgetWrapperFactory.create_wrapper_from_metadata(param, dialog, row, col)
else:
# try from c++ registry first