diff options
author | treectrl <treectrl> | 2002-12-24 05:53:33 (GMT) |
---|---|---|
committer | treectrl <treectrl> | 2002-12-24 05:53:33 (GMT) |
commit | 1c739213021230580e62c061234017d00447d9bf (patch) | |
tree | 73e20c8619f5cb1108a0ea8bfdf392008bf1994a | |
parent | ec8993f88ef01e3a13fde5330e994fd881ae4e31 (diff) | |
download | tktreectrl-1c739213021230580e62c061234017d00447d9bf.zip tktreectrl-1c739213021230580e62c061234017d00447d9bf.tar.gz tktreectrl-1c739213021230580e62c061234017d00447d9bf.tar.bz2 |
Set -wrap database options.
Allow any value for -treecolumn option.
-rw-r--r-- | generic/tkTreeCtrl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/generic/tkTreeCtrl.c b/generic/tkTreeCtrl.c index 0fda3f8..8db680a 100644 --- a/generic/tkTreeCtrl.c +++ b/generic/tkTreeCtrl.c @@ -162,7 +162,7 @@ static Tk_OptionSpec optionSpecs[] = { {TK_OPTION_PIXELS, "-width", "width", "Width", "200", -1, Tk_Offset(TreeCtrl, width), 0, (ClientData) NULL, 0}, - {TK_OPTION_STRING, "-wrap", (char *) NULL, (char *) NULL, + {TK_OPTION_STRING, "-wrap", "wrap", "Wrap", (char *) NULL, Tk_Offset(TreeCtrl, wrapObj), -1, TK_OPTION_NULL_OK, (ClientData) NULL, TREE_CONF_WRAP | TREE_CONF_RELAYOUT}, @@ -1273,9 +1273,6 @@ badWrap: tree->highlightWidth = 0; tree->inset = tree->highlightWidth + tree->borderWidth; - if ((tree->columnTree < 0) || (tree->columnTree >= tree->columnCount)) - tree->columnTree = 0; - if (oldShowRoot != tree->showRoot) { TreeItem_InvalidateHeight(tree, tree->root); |