Tk Library Source Code

View Ticket
Login
Ticket UUID: 484123
Title: Patch for BWidget::place
Type: Patch Version: None
Submitter: decosterjos Created on: 2001-11-21 10:37:08
Subsystem: bwidget Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2001-12-29 08:52:32
Resolution: Fixed Closed By: hobbs
    Closed on: 2001-12-29 01:52:32
Description:
When BWidget::place is called with location different
from 'at' and 'center' and without a prarent (arglen =
1), variable 'widget'  is undefined. I added an 'else'
case the if statement setting the variable widget to
make sure the variable widget is always set.

Result of 'cvs diff utils.tcl':

Index: utils.tcl
===================================================================
RCS file: /cvsroot/tcllib/bwidget/utils.tcl,v
retrieving revision 1.3
diff -r1.3 utils.tcl
272c272,274
<             }
---
>             } else {
>                   set widget .
>           }
User Comments: hobbs added on 2001-12-29 08:52:32:
Logged In: YES 
user_id=72656

added in 1.4.0cvs.