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 540748 - gtk_label_get_layout_offsets doesn't call gtk_label_ensure_layout
gtk_label_get_layout_offsets doesn't call gtk_label_ensure_layout
Status: RESOLVED DUPLICATE of bug 530255
Product: gtk+
Classification: Platform
Component: Widget: Other
2.13.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-06-29 12:39 UTC by Torsten Schoenfeld
Modified: 2008-06-29 12:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Call gtk_label_ensure_layout before calling get_layout_location (389 bytes, patch)
2008-06-29 12:40 UTC, Torsten Schoenfeld
none Details | Review

Description Torsten Schoenfeld 2008-06-29 12:39:52 UTC
When you call gtk_label_get_layout_offsets before label->layout has been set up properly, it dies with an assertion.  The attached patch simply calls gtk_label_ensure_layout before calling get_layout_location to avoid this.
Comment 1 Torsten Schoenfeld 2008-06-29 12:40:20 UTC
Created attachment 113607 [details] [review]
Call gtk_label_ensure_layout before calling get_layout_location
Comment 2 Björn Lindqvist 2008-06-29 12:57:13 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 530255 ***