File tree 3 files changed +22
-4
lines changed
3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1
- 8.3.468
1
+ 8.3.469
Original file line number Diff line number Diff line change @@ -2294,8 +2294,14 @@ DBFindUse(id, parentDef)
2294
2294
he = HashLookOnly (& parentDef -> cd_idHash , id );
2295
2295
if (delimit != NULL ) * delimit = '[' ;
2296
2296
if (he == NULL )
2297
- return (CellUse * ) NULL ;
2297
+ {
2298
+ /* Try again without ignoring the delimiter */
2299
+ if (delimit != NULL )
2300
+ he = HashLookOnly (& parentDef -> cd_idHash , id );
2298
2301
2302
+ if (he == NULL )
2303
+ return (CellUse * ) NULL ;
2304
+ }
2299
2305
return (CellUse * ) HashGetValue (he );
2300
2306
}
2301
2307
Original file line number Diff line number Diff line change @@ -1440,11 +1440,22 @@ proc magic::gencell_dialog {instname gencell_type library parameters} {
1440
1440
1441
1441
if {$instname != {}} {
1442
1442
# Remove any array component of the instance name
1443
- set instname [string map {\\ " " } $instname ]
1444
- if {[regexp {^(.*)\[[0-9,]+\]$} $instname valid instroot]} {
1443
+ set baseinstname [string map {\\ " " } $instname ]
1444
+ if {[regexp {^(.*)\[[0-9,]+\]$} $baseinstname valid instroot]} {
1445
+ set originstname $instname
1445
1446
set instname $instroot
1447
+ } else {
1448
+ set instroot " "
1446
1449
}
1447
1450
set gname [instance list celldef [subst $instname ]]
1451
+ if {$gname == " " } {
1452
+ # Check if name inherited brackets but is not an array
1453
+ if {$instroot != " " } {
1454
+ set testinstname [string map {\[ \\\[ \] \\\] } $baseinstname ]
1455
+ set gname [instance list celldef [subst $testinstname ]]
1456
+ set instname $originstname
1457
+ }
1458
+ }
1448
1459
set gencell_type [cellname list property $gname gencell]
1449
1460
if {$library == {}} {
1450
1461
set library [cellname list property $gname library]
@@ -1562,6 +1573,7 @@ proc magic::gencell_dialog {instname gencell_type library parameters} {
1562
1573
magic::gencell_dialog \$ inst $gencell_type $library {} ; \
1563
1574
destroy .params}]
1564
1575
} else {
1576
+ set instname [string map {\[ \\\[ \] \\\] } $instname ]
1565
1577
button .params.buttons.apply -text " Apply" -command \
1566
1578
" magic::gencell_change $instname $gencell_type $library {}"
1567
1579
button .params.buttons.okay -text " Okay" -command \
You can’t perform that action at this time.
0 commit comments