GNOME Bugzilla – Bug 726202
Conditional format roundtrip problem [Excel]
Last modified: 2014-03-20 01:43:57 UTC
New test t6515: t6515-cond-format.pl: Check conditional format xls/BIFF7 roundtrip. | ** (/home/welinder/gnome-src/gnumeric/src/.libs/ssconvert:2782): CRITICAL **: gnm_style_conditions_insert: assertion `gnm_style_cond_is_valid (cond_)' failed Ditto biff8. xlsx doesn't even look like it's trying.
the xls situation is much improved.
<gnm:Condition Operator="2"> <gnm:Expression0>10</gnm:Expression0> - <gnm:Style Format="0.00"/> + <gnm:Style/> </gnm:Condition> <gnm:Condition Operator="2"> <gnm:Expression0>10</gnm:Expression0> - <gnm:Style HAlign="GNM_HALIGN_CENTER" VAlign="GNM_VALIGN_BOTTOM" WrapText="0" ShrinkToFit="0" Rotation="0" Indent="0"/> + <gnm:Style/> </gnm:Condition>
"Format" is not in xls. Hidden in test. Alignment stuff fixed. New: we change the font name somewhere. - <gnm:Font Unit="20" Bold="0" Italic="0" Underline="0" StrikeThrough="0" Script="0">Sans</gnm:Font> + <gnm:Font Unit="20" Bold="0" Italic="0" Underline="0" StrikeThrough="0" Script="0">Helvetica</gnm:Font>
Created attachment 271983 [details] [review] Tentative patch This patch adds number format and font name to the items we store for conditional formats. It follows the documentation in MS-XLS However, applying it makes LO unusable for checking stuff: welinder@toshiba ~/gnome/gnumeric/test $ ../src/ssconvert ../samples/cond-format-tests.gnumeric ~/ccc.xls welinder@toshiba ~/gnome/gnumeric/test $ localc ~/ccc.xls terminate called after throwing an instance of 'boost::bad_index' what(): 'at()' out of bounds
Ok, I was wrong. That patch is not the cause of LO's trouble. It's the conditional right alignment that causes the exception. https://bugs.freedesktop.org/show_bug.cgi?id=76209
xls is done.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.