1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/editors/glimmer/files/patch-src_gtkextext_gtkextext.c
Joe Marcus Clarke ced09912aa Fix the build with GCC 4.x.
Reported by:	pointyhat via kris
2007-04-07 05:53:56 +00:00

13 lines
522 B
C

--- src/gtkextext/gtkextext.c.orig Sat Apr 7 01:47:56 2007
+++ src/gtkextext/gtkextext.c Sat Apr 7 01:52:20 2007
@@ -1140,7 +1140,8 @@ line_set_cursor_pos (GtkExText * text, g
val = (gfloat) width;
gtk_adjustment_set_value (text->hadj, val);
} else if (text->draw_numbers && width < (val + text->gutter_width)) {
- val = (gfloat) width -= text->gutter_width;
+ width -= text->gutter_width;
+ val = (gfloat) width;
gtk_adjustment_set_value (text->hadj, val);
}