Ignore:
Timestamp:
Nov 18, 2016, 11:18:15 AM (10 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
6dc91d2
Parents:
b23291d
Message:

Refs #1933
Mejora en bmultiselect.
Se quitan algunas trazas

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7351 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/byswidget/bmultiselect/bmultiselect.tcl

    rb23291d rffeacdc  
    472472      set last [lindex $indexes end]     
    473473      if { $plus } {
    474         set start [$right first]
    475         if { $first != $start } {
    476           $right move [lindex [$right range [$right first] $first] end-1] \
    477                  after $last
    478           $right selection clearall
    479           $right selection set $first $last
    480         }       
     474        # hacia arriba
     475        if {$first eq [$right item firstchild root]} return
     476        foreach index $indexes {
     477          $right move $index before {}
     478        }
     479        #@+ set start [$right first]
     480        #@+ if { $first != $start } {
     481        #@+   $right move [lindex [$right range [$right first] $first] end-1] after $last
     482        #@+   $right selection clearall
     483        #@+   $right selection set $first $last
     484        #@+ }       
    481485      } else {
    482486        if { $first != 0 } {
    … …  
    499503    if {$indexes != ""} {
    500504      set first [lindex $indexes 0]
    501       set last [lindex $indexes end]     
     505      set last [lindex $indexes end]
    502506      if { $plus } {
    503         set end [$right last]
    504         if { $last != $end } {
    505           $right move [lindex [$right find $last] 1] before $first
    506           $right selection clearall
    507           $right selection set $first $last
    508         }   
     507        # hacia abajo
     508        if {$last eq [$right item lastchild root]} return
     509        foreach index [lreverse $indexes] {
     510          $right move $index after {}
     511        }
     512        #@+ set end [$right last]
     513        #@+ if { $last != $end } {
     514        #@+   $right move [lindex [$right find $last] 1] before $first
     515        #@+   $right selection clearall
     516        #@+   $right selection set $first $last
     517        #@+ }
    509518      } else {
    510519        set end [$right index end]
Note: See TracChangeset for help on using the changeset viewer.