diff options
author | ferrieux <ferrieux@users.sourceforge.net> | 2008-12-21 23:52:45 (GMT) |
---|---|---|
committer | ferrieux <ferrieux@users.sourceforge.net> | 2008-12-21 23:52:45 (GMT) |
commit | 66e293b3ecc1bc3b72bb152c7e93a5380cd96d38 (patch) | |
tree | 6aaa853e62bf644e2a1ef9de0c9b5358fd47c650 /generic/tkText.c | |
parent | 7755a72d4df91e7c456cf4f339693d7027c29076 (diff) | |
download | tk-66e293b3ecc1bc3b72bb152c7e93a5380cd96d38.zip tk-66e293b3ecc1bc3b72bb152c7e93a5380cd96d38.tar.gz tk-66e293b3ecc1bc3b72bb152c7e93a5380cd96d38.tar.bz2 |
Backport of the Millipeter patch [1813597,2218964]
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index 21077df..fb2f9b1 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -13,7 +13,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.79.2.1 2008/12/07 16:48:00 das Exp $ + * RCS: @(#) $Id: tkText.c,v 1.79.2.2 2008/12/21 23:52:45 ferrieux Exp $ */ #include "default.h" @@ -4326,12 +4326,10 @@ TkTextGetTabs( } prevStop = lastStop; - if (Tk_GetMMFromObj(interp, textPtr->tkwin, objv[i], - &lastStop) != TCL_OK) { + if (Tk_GetDoublePixelsFromObj (interp, textPtr->tkwin, objv[i], + &lastStop) != TCL_OK) { goto error; } - lastStop *= WidthOfScreen(Tk_Screen(textPtr->tkwin)); - lastStop /= WidthMMOfScreen(Tk_Screen(textPtr->tkwin)); if (i > 0 && (tabPtr->location <= (tabPtr-1)->location)) { /* |