Browse Source

fix long-standing bug where a table text widget can't start with a zero

git-svn-id: file:///home/pjones/src/tmp/b2-svn/prepos/trunk@294 637e2b85-2e0a-0410-84ac-bd785500051d
master
pjones 13 years ago
parent
commit
03a4a09344
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/Curses/Widgets/Table.pm

+ 1
- 1
lib/Curses/Widgets/Table.pm View File

@@ -213,7 +213,7 @@ sub draw {
$self->{'__textfields__'}[$i][$j]->setField('CURSORPOS', 0);
} else {
if (!$self->{'__textfields__'}[$i][$j]->getField('VALUE')) {
my $pos = length($rows->[$row][$j] || '');
my $pos = length($rows->[$row][$j]);

if ($pos > ($self->{'__textfields__'}[$i][$j]->getField('LENGTH') - 1)) {
$pos = $self->{'__textfields__'}[$i][$j]->getField('LENGTH') - 1;

Loading…
Cancel
Save