summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 706d9bfca3..29ae156fa3 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3844,9 +3844,9 @@ gtk_entry_show_magnifier (GtkEntry *entry,
gtk_widget_get_allocation (GTK_WIDGET (entry), &allocation);
- rect.x = x + text_allocation.x - allocation.x;
+ rect.x = x + text_allocation.x;
rect.width = 1;
- rect.y = text_allocation.y - allocation.y;
+ rect.y = text_allocation.y;
rect.height = text_allocation.height;
_gtk_magnifier_set_coords (GTK_MAGNIFIER (priv->magnifier), rect.x,