GNOME Bugzilla – Bug 654495
failure to adjust conditional formatting
Last modified: 2013-02-08 15:18:21 UTC
Created attachment 191829 [details] sample file Consider the attached file. A1 has an conditional red background whenever B1 is equal to "x". Changing B1 shows A1 changing as expected. A3 has a conditional font style (bold & underline) whenever B3 is equal to "x". Changing B3 has no effect on A3's formatting. Clearly something is not connected correctly.
Hmm, somehow the change in Bx triggers Ax to redraw (for x=1 or 3). When Ax is being redrawn we always determine the true background colour, so it change. We do not rerender the cell content (that would take much too long). So whatever triggers the redrawing of Ax should force the rerendering of the value of Ax too. Unfortunately I have no idea how the redrawing is triggered and using gdb add many additional redraws on every status change of the Gnumeric window...
My guess is that we are not hooking of conditional formats at all. (Running with GNM_DEBUG=deps and pressing the lightbulb icon shows no dependencies at all.) Re gdb: for this kind of thing having a separate screen for gdb works best.
Created attachment 235279 [details] [review] Preliminary patch Here's a start.
*** Bug 674954 has been marked as a duplicate of this bug. ***
Created attachment 235312 [details] [review] Updated patch Reduced patch after committing changes not really related to style deps.
Created attachment 235451 [details] [review] Updated patch Not much left...
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.