summaryrefslogtreecommitdiffstats
path: root/win/tkWinFont.c
diff options
context:
space:
mode:
authormdejong <mdejong>2004-08-09 23:45:57 (GMT)
committermdejong <mdejong>2004-08-09 23:45:57 (GMT)
commitf4a42ce249cc5b9905a830f1e182c46f0e7b01b8 (patch)
tree78dd7e88969f30447fa4766b2970817b15754ee5 /win/tkWinFont.c
parentb9bae279f1c5d13585d01b1fcecfb9938de0387b (diff)
downloadtk-f4a42ce249cc5b9905a830f1e182c46f0e7b01b8.zip
tk-f4a42ce249cc5b9905a830f1e182c46f0e7b01b8.tar.gz
tk-f4a42ce249cc5b9905a830f1e182c46f0e7b01b8.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 1006286]
Diffstat (limited to 'win/tkWinFont.c')
-rw-r--r--win/tkWinFont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinFont.c b/win/tkWinFont.c
index c5ee0da..98b24eb 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.24 2004/05/05 16:49:53 hobbs Exp $
+ * RCS: @(#) $Id: tkWinFont.c,v 1.25 2004/08/09 23:45:58 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 == ' ')) {