After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 83103 - Clicking/dragging beyond the end of the buffer.
Clicking/dragging beyond the end of the buffer.
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.0.x
Other other
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-05-27 05:15 UTC by James Cape
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description James Cape 2002-05-27 05:15:03 UTC
When clicking or dragging beyond the end of a buffer, the following warning
is spewed (per-event, really sucks when you're dragging):

(gnomechat:23527): Gtk-CRITICAL **: file gtktextiter.c: line 3525
(gtk_text_iter_set_line_offset): assertion `char_on_line <= chars_in_line'
failed

This happens in my use of the GtkTextView widget, and gedit's, so I'm
thinking it's a problem with the widget. This happens whether I'm messing
with events or not, BTW.

I believe the problem lies in gtk_text_layout_get_iter_at_pixel ().
Comment 1 James Cape 2002-06-12 01:21:48 UTC
After rebuilding things against the GTK+ packages in Debian sid, this
problem disappeared. Consequently I've no idea why this started
occuring, or how to fix it, though I get the feeling that either my
CFLAGs or a bad installation caused this.
Comment 2 James Cape 2002-07-08 11:50:50 UTC
I'm closing this bug since I haven't seen it in the last month.