Skip to content

Commit 6a698fb

Browse files
poke1024lieblb
authored andcommitted
fixes a bug that had use of labels fill the wrong symbol
1 parent e2d54d5 commit 6a698fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mathics/builtin/manipulate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ class ManipulateParameter(Builtin): # parses one Manipulate[] parameter spec, e.
7272
'System`Private`ManipulateParameter[{s_Symbol, r__}]':
7373
'System`Private`ManipulateParameter[{Symbol -> s, Label -> s}, {r}]',
7474
'System`Private`ManipulateParameter[{{s_Symbol, d_}, r__}]':
75-
'System`Private`ManipulateParameter[{Symbol -> s, Label -> s, Default -> d}, {r}]',
75+
'System`Private`ManipulateParameter[{Symbol -> s, Default -> d, Label -> s}, {r}]',
7676
'System`Private`ManipulateParameter[{{s_Symbol, d_, l_}, r__}]':
77-
'System`Private`ManipulateParameter[{Symbol -> i, Label -> l, Default -> d}, {r}]',
77+
'System`Private`ManipulateParameter[{Symbol -> s, Default -> d, Label -> l}, {r}]',
7878

7979
# detect different kinds of widgets. on the use of the duplicate key "Default ->", see _WidgetInstantiator.add()
8080
'System`Private`ManipulateParameter[var_, {min_?RealNumberQ, max_?RealNumberQ}]':

0 commit comments

Comments
 (0)