Skip to content

Commit 64d97fb

Browse files
committed
corrected idDictionary data input
1 parent 19a2a9e commit 64d97fb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Tutorial-o-Matic/src/main/groovy/ToM.groovy

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class ToM{
163163
def infoAccion = toma.getActionInfoMap(nodo)
164164
if (infoAccion){
165165
def msgHtml = infoAccion.instructions
166-
def bttnText = 'Show me'
166+
def bttnText = 'Show it in the menu'
167167
def bttnToolTip = "Click to see where is ${toma.apos(infoAccion.label)} in Freeplane Menu"
168168
def bttnAction = { e ->
169169
def bttn = e.source
@@ -342,11 +342,12 @@ class ToM{
342342
def bttn = e.source
343343
bttn.setEnabled(enabled)
344344
def nodoTarget = c.selected
345+
def existentesNodoTarget = nodoTarget.findAll()
345346
nodoSource.children.each{n ->
346347
nodoTarget.appendBranch(n)
347348
}
348349
def idSource = ( nodoSource.findAll() - nodoSource )*.id
349-
def idTarget = ( nodoTarget.findAll() - nodoTarget )*.id
350+
def idTarget = ( nodoTarget.findAll() - existentesNodoTarget )*.id
350351
for (def i = 0; i < idSource.size() ; i++){
351352
myP.idDictionary[ idSource[i] ] = idTarget[i]
352353
}
@@ -430,7 +431,7 @@ class ToM{
430431
// region: help / debug
431432

432433
def static uiMsg(texto){
433-
// ui.informationMessage(texto.toString())
434+
//ui.informationMessage(texto.toString())
434435
}
435436

436437
// end:

0 commit comments

Comments
 (0)