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 586437 - TreePath::empty return true if the object is NULL
TreePath::empty return true if the object is NULL
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: TreeView
2.16.x
Other All
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2009-06-19 23:41 UTC by Hubert Figuiere (:hub)
Modified: 2009-06-24 15:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (933 bytes, patch)
2009-06-22 23:45 UTC, Hubert Figuiere (:hub)
committed Details | Review

Description Hubert Figuiere (:hub) 2009-06-19 23:41:36 UTC
TreePath::empty() does return false if the gobject_ is NULL. It should return true, because it is invalid.

I can provide a patch if you want.
Comment 1 Murray Cumming 2009-06-22 15:57:16 UTC
Yes, please.
Comment 2 Hubert Figuiere (:hub) 2009-06-22 23:45:11 UTC
Created attachment 137219 [details] [review]
patch

Here is the patch against master. Let me know if I can push it.
Comment 3 Murray Cumming 2009-06-23 07:36:15 UTC
Yes, please, and to any branch that incorrect code.
Comment 4 Hubert Figuiere (:hub) 2009-06-23 07:48:34 UTC
committed to master only.
Comment 5 Daniel Elstner 2009-06-24 15:09:38 UTC
Related: Bug 511136