diff options
author | mdejong <mdejong> | 2004-08-09 23:48:11 (GMT) |
---|---|---|
committer | mdejong <mdejong> | 2004-08-09 23:48:11 (GMT) |
commit | 2b8360cae62b03c04573225797472300e8d304cb (patch) | |
tree | f357f6aa844b20cc3bf79bb0a11fc51406fff627 /win | |
parent | b0d833115bdbaee82426e0d0f735efa95954f063 (diff) | |
download | tk-2b8360cae62b03c04573225797472300e8d304cb.zip tk-2b8360cae62b03c04573225797472300e8d304cb.tar.gz tk-2b8360cae62b03c04573225797472300e8d304cb.tar.bz2 |
* tests/canvText.test:
* win/tkWinFont.c (Tk_MeasureChars): Fix for text
wrapping problem that appeared using canvas text
under Win32. A long wrapping string that had
leading spaces was being incorrectly wrapped.
This change makes the Win32 implementation behave
the same as the Unix implementation. [Patch 100628
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinFont.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinFont.c b/win/tkWinFont.c index 33dd131..0ec67fa 100644 --- a/win/tkWinFont.c +++ b/win/tkWinFont.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinFont.c,v 1.17.2.2 2004/05/05 16:51:22 hobbs Exp $ + * RCS: @(#) $Id: tkWinFont.c,v 1.17.2.3 2004/08/09 23:48:11 mdejong Exp $ */ #include "tkWinInt.h" @@ -764,7 +764,7 @@ Tk_MeasureChars( end = p; p = source; - ch = 0; + ch = ' '; while (p < end) { next = p + Tcl_UtfToUniChar(p, &ch2); if ((ch != ' ') && (ch2 == ' ')) { |