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)
commit2b8360cae62b03c04573225797472300e8d304cb (patch)
treef357f6aa844b20cc3bf79bb0a11fc51406fff627 /win
parentb0d833115bdbaee82426e0d0f735efa95954f063 (diff)
downloadtk-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.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 == ' ')) {