diff options
author | vincentdarley <vincentdarley> | 2004-06-04 10:51:17 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2004-06-04 10:51:17 (GMT) |
commit | 0599d09e8d0ef7c3d1d1afbd61e61e2a4c14b099 (patch) | |
tree | d72800bda1f80884a0368bed786b3e88820147df /generic/tkText.c | |
parent | df2af8293fc2b2a31a501cf87e04b8b34729dc9f (diff) | |
download | tk-0599d09e8d0ef7c3d1d1afbd61e61e2a4c14b099.zip tk-0599d09e8d0ef7c3d1d1afbd61e61e2a4c14b099.tar.gz tk-0599d09e8d0ef7c3d1d1afbd61e61e2a4c14b099.tar.bz2 |
text widget fixes
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index bd417d0..01a09f9 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkText.c,v 1.49 2004/03/17 18:15:44 das Exp $ + * RCS: @(#) $Id: tkText.c,v 1.50 2004/06/04 10:51:18 vincentdarley Exp $ */ #include "default.h" @@ -3361,6 +3361,11 @@ TkTextGetTabs(interp, textPtr, stringPtr) for (i = 0, tabPtr = &tabArrayPtr->tabs[0]; i < objc; i++, tabPtr++) { int index; + /* + * This will round fractional pixels above 0.5 upwards, and + * otherwise downwards, to find the right integer pixel + * position. + */ if (Tk_GetPixelsFromObj(interp, textPtr->tkwin, objv[i], &tabPtr->location) != TCL_OK) { goto error; |