Commit e08c4192 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix CONNECT symbol

parent 09470961
......@@ -112,6 +112,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
3.0.6 (06/2020)
- Fix CONNECT symbol
3.0.5 (06/2020)
- Add support to standard SDL syntax x := CALL procedure
in tasks
......
......@@ -1159,6 +1159,8 @@ def compare_types(type_a, type_b): # type -> [warnings]
'''
warnings = []
mismatch = ''
if not type_a or not type_b:
raise TypeError("Missing type definition")
if type_a.kind == 'ReferenceType' and type_b.kind == 'ReferenceType':
if type_a.ReferencedTypeName != type_b.ReferencedTypeName:
mismatch = '"{}" is not "{}"'.format(type_a.ReferencedTypeName,
......@@ -1591,8 +1593,11 @@ def expression(root, context, pos='right'):
prim.exprType = pc.exprType
prim.inputString = pc.inputString
prim.tmpVar = tmp()
prim.value = [pc.output[0]['outputName'],
procedureName = pc.output[0]['outputName']
prim.value = [procedureName,
{'procParams': pc.output[0]['params']}]
# If the procedure is not defined with a return value, a TypeError
# has been raised in compare_type, so no need to check it again here
return prim, errs, warns
else:
raise NotImplementedError(sdl92Parser.tokenNamesMap[root.type] +
......
......@@ -140,7 +140,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '3.0.5'
__version__ = '3.0.6'
if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated)
......
......@@ -224,8 +224,8 @@ class Connect(Input):
self.setPen(QPen(Qt.blue))
self.textbox_alignment = Qt.AlignLeft | Qt.AlignTop
path = QPainterPath()
path.moveTo(0, 0)
path.lineTo(0, height)
path.moveTo(width / 2, 0)
path.lineTo(width / 2, height)
#path.moveTo(0, height / 2)
#path.lineTo(width, height / 2)
self.setPath(path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment