Artifact
8c5bb50b7eb7312d93b11a2798b3cae12cc7b1b9:
Attachment "1754043_2321450_V1.patch" to
ticket [3479498f]
added by
fvogelnew1
2012-01-25 14:54:04.
Index: generic/tkTextDisp.c
==================================================================
--- generic/tkTextDisp.c
+++ generic/tkTextDisp.c
@@ -6849,10 +6849,13 @@
* line.
*/
if (charWidthPtr != NULL) {
*charWidthPtr = dInfoPtr->maxX - *xPtr;
+ if (*charWidthPtr > textPtr->charWidth) {
+ *charWidthPtr = textPtr->charWidth;
+ }
}
if (*xPtr > dInfoPtr->maxX) {
*xPtr = dInfoPtr->maxX;
}
*widthPtr = dInfoPtr->maxX - *xPtr;