DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2231
Version: 2.0-feature


Hmm, I'm just looking over this patch, and am wondering about
the last bit of code:

+
+  // Restore column width
+  if (cols) cols[0] = saved_colw;

It /seems/ like the conditions that that initialize 'saved_colw' are
possibly different than the condition that restores the value.

ie. saved_colw is effectively set on the conditions of:

    if ( img && !(flags & ALIGN_CENTER) && (flags & ALIGN_LEFT) && cols)

..but saved_colw is saved back into cols[0] without any of those
conditions needing to be met, meaning cols[0] might end up as zero.

Is that correct?


Link: http://www.fltk.org/str.php?L2231
Version: 2.0-feature

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to