summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorjenglish <jenglish@noemail.net>2012-07-31 18:11:01 (GMT)
committerjenglish <jenglish@noemail.net>2012-07-31 18:11:01 (GMT)
commit9a8986bbb92d4c3beb3ea74c6be05e2ef815d185 (patch)
treefb1cad051930ed8381566151544b255f77fd735c /generic/ttk
parent91ca6848df7ddf236d0659f5674a5602b4393b29 (diff)
downloadtk-9a8986bbb92d4c3beb3ea74c6be05e2ef815d185.zip
tk-9a8986bbb92d4c3beb3ea74c6be05e2ef815d185.tar.gz
tk-9a8986bbb92d4c3beb3ea74c6be05e2ef815d185.tar.bz2
ttk::entry: Fix incorrect clip region computation [Bug 3552404]
FossilOrigin-Name: 2de6634d57486bcf8f8190d13d3613e37303cd32
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkEntry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c
index 6eccf51..a3d0179 100644
--- a/generic/ttk/ttkEntry.c
+++ b/generic/ttk/ttkEntry.c
@@ -1225,10 +1225,10 @@ static void EntryDisplay(void *clientData, Drawable d)
* clipping area from the GC, so we have to supply that by other means.
*/
- rect.x = entryPtr->entry.layoutX;
- rect.y = entryPtr->entry.layoutY;
+ rect.x = textarea.x;
+ rect.y = textarea.y;
rect.width = textarea.width;
- rect.height = entryPtr->entry.layoutHeight;
+ rect.height = textarea.height;
clipRegion = TkCreateRegion();
TkUnionRectWithRegion(&rect, clipRegion, clipRegion);
#ifdef HAVE_XFT