GNOME Bugzilla – Bug 675955
Sheet style issues
Last modified: 2012-05-17 17:51:07 UTC
1. gnm_style_hash was a poor quality hash. [recently fixed] 2. gnm_style_hash and gnm_style_equal should only look at set elements. [recently fixed] 3. GnmSheetStyleData::style_hash has problems with removing elements. We can change elements so they become equal, but when we remove an element from the hash it's anyone's guess what element we are removing. Probably not good. style_hash should become a map from style-hash-value to a GSList of styles with that hash. (I.e., we should handle hashing and collisions manually leaving the resizing to glib.)
4. cell_tile_optimize uses gnm_style_equal, but should now use gnm_style_eq (aka pointer comparison). That's probably true for sample_styles and verify_styles too. Maybe sheet_style_get_range.
#4 fixed.
#3 fixed. This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
5. When a style is linked into a different sheet, the dependents embedded in, say, validation need to be updated. Fixed.