Tk Source Code

Artifact [9063e788]
Login

Artifact 9063e7881f86057a5cd3661f7ec46db67a6d4221:

Ticket change [9063e788] - Ticket [cac46925] Revised [text]: assertion failed in tkTextDisp.c:7191 status still Open with 3 other changes by fvogel 2017-08-20 16:35:42.
D 2017-08-20T16:35:42.228
J icomment The\sfollowing\spatch\sprevents\sthe\sassertion\sfrom\striggering\sin\sthe\ssituation\sI\scan\sotherwise\smake\sit\strigger\srepeatably\sin\smy\sapplication:\r\n\r\n<verbatim>\r\nIndex:\sgeneric/tkText.c\r\n==================================================================\r\n---\sgeneric/tkText.c\r\n+++\sgeneric/tkText.c\r\n@@\s-1865,11\s+1865,11\s@@\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sbreak;\r\n\s\s\s\s\s\s\s\s\s\s\s\scase\s'y':\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s(strncmp("-ypixels",\soption,\slength)\s==\s0)\s{\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sint\sfrom,\sto;\r\n\r\n-\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s(update)\s{\r\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s(update\s&&\s(TkTextIndexCompare(&indexFrom,\s&indexTo)\s!=\s0))\s{\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sfrom\s=\sTkTextIndexGetLineNumber(&indexFrom,\stextPtr);\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sto\s=\sTkTextIndexGetLineNumber(&indexTo,\stextPtr);\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sUpdateLineMetrics(textPtr,\sfrom,\sto);\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sfrom\s=\sTkTextIndexYPixels(textPtr,\s&indexFrom);\r\n</verbatim>\r\n\r\nIs\sthis\scorrect,\sor\sis\sthere\sa\sbetter\sfix?
J login fvogel
J mimetype text/x-fossil-wiki
K cac46925857f9928049828bc2e1552aa3842d2bd
U fvogel
Z c39a7eef687597dc318dfa52c0c8293e