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)
commit127e9129e2cd647d875d526278625f5ef05bafc3 (patch)
tree78dd7e88969f30447fa4766b2970817b15754ee5 /win/tkWinFont.c
parent0de57ab61893e04d69494e6f1eb5fffae8c19686 (diff)
downloadtk-127e9129e2cd647d875d526278625f5ef05bafc3.zip
tk-127e9129e2cd647d875d526278625f5ef05bafc3.tar.gz
tk-127e9129e2cd647d875d526278625f5ef05bafc3.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 == ' ')) {