From: Axel S. <A....@ke...> - 2007-07-16 12:39:50
|
Mon Jul 16 05:37:08 PDT 2007 A....@ke... * Fix bug in TreeStore on empty stores. This fixes a bug when running e.g. treeModelIterNChildren store Nothing when store is an empty TreeStore. hunk ./gtk/Graphics/UI/Gtk/ModelView/TreeStore.hs 322 -checkSuccess depth iter cache = (cmp cur iter && not (null sibs), cache') +checkSuccess depth iter cache = case advanceCache depth iter cache of + cache'@((cur,sibs):_) -> (cmp cur iter && not (null sibs), cache') + [] -> (False, []) |