]> git.saurik.com Git - wxWidgets.git/commitdiff
Left unused variable around.
authorRobert Roebling <robert@roebling.de>
Sun, 15 Oct 2006 19:18:48 +0000 (19:18 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 15 Oct 2006 19:18:48 +0000 (19:18 +0000)
  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

index c62da37523ce9a46409de4b64daacfcd1ddb1182..0457c7ac9e29d3c3c3fa379f2d0f2c00b9864387 100644 (file)
@@ -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);