AST: fix UserType display after https://codereview.scilab.org/#/c/16500/ 23/16523/1
Paul Bignier [Thu, 28 May 2015 11:58:10 +0000 (13:58 +0200)]
 * -->loadXcosLibs(); scicos_diagram() could not display (or any other Scicos object)

Change-Id: I02035fffe755d31ea59a79bf828542d7183dc6d0

scilab/modules/ast/src/cpp/ast/runvisitor.cpp

index 55b42ed..cdee9b3 100644 (file)
@@ -155,7 +155,7 @@ void RunVisitorT<T>::visitprivate(const FieldExp &e)
 
     try
     {
-        if (pValue->isGenericType())
+        if (pValue->isGenericType() || pValue->isUserType())
         {
             ok = pValue->getAs<GenericType>()->extract(wstField, pReturn);
         }