# HG changeset patch # User laurent # Date 1337674464 -7200 # Node ID 4ecfbcc09beffa92f301b69a0fddb14ce0db7832 # Parent e00ce7077bfc67b99311fcd679d53993bba526ac Fix bug on PouInstanceVariablesPanel diff -r e00ce7077bfc -r 4ecfbcc09bef PLCControler.py --- a/PLCControler.py Mon May 21 18:50:16 2012 +0200 +++ b/PLCControler.py Tue May 22 10:14:24 2012 +0200 @@ -397,7 +397,7 @@ edit = debug = pou_type is not None if pou_type is None: block_infos = self.GetBlockType(var_type, debug = debug) - if block_infos is None: + if block_infos is not None: pou_type = block_infos["type"] if pou_type is not None: var_class = None