From 34445cc76d2604c2b0baf3e0cd22ccad7b31e170 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 15 Oct 2006 19:18:48 +0000 Subject: [PATCH] Left unused variable around. Adjust window placement in the correct direction in RTL. This corrects in-place editing in wxGrid. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/win_gtk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gtk/win_gtk.c b/src/gtk/win_gtk.c index c62da37523..0457c7ac9e 100644 --- a/src/gtk/win_gtk.c +++ b/src/gtk/win_gtk.c @@ -239,7 +239,6 @@ void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset) gint gtk_pizza_get_rtl_offset (GtkPizza *pizza) { - gint width; gint border; g_return_val_if_fail ( (pizza != NULL), 0 ); @@ -695,7 +694,7 @@ gtk_pizza_allocate_child (GtkPizza *pizza, border = pizza->container.border_width; offset -= border*2; - allocation.x = offset - child->x - allocation.width - pizza->m_xoffset; + allocation.x = offset - child->x - allocation.width + pizza->m_xoffset; } gtk_widget_size_allocate (child->widget, &allocation); -- 2.45.2