summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authormdejong <mdejong>2004-08-09 23:48:11 (GMT)
committermdejong <mdejong>2004-08-09 23:48:11 (GMT)
commitd5fe0750220b427c1aa8081d80bf33c614c5f987 (patch)
treef357f6aa844b20cc3bf79bb0a11fc51406fff627 /win
parente0cb984907178744d3fc7780d943c2a6806423dc (diff)
downloadtk-d5fe0750220b427c1aa8081d80bf33c614c5f987.zip
tk-d5fe0750220b427c1aa8081d80bf33c614c5f987.tar.gz
tk-d5fe0750220b427c1aa8081d80bf33c614c5f987.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.c4
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 == ' ')) {