On Sun, Oct 20, 2002 at 06:49:00PM +0200, Dekel Tsur wrote:
> On Thu, Oct 17, 2002 at 09:26:11PM +0300, Martin Vermeer wrote:
> Here is a fix for this bug. OK to apply ?

Can't this be solved using some virtual function _somehow_?

This

> +                             if (in->lyxCode() == Inset::FLOAT_CODE ||
> +                                 in->lyxCode() == Inset::WRAP_CODE) {
> +                                     isOK = true;
> +                                     break;
> +                             } else {
[...]
> +                                     (in->lyxCode() == Inset::FLOAT_CODE)
> +                                     ? static_cast<InsetFloat*>(in)->type()
> +                                     : static_cast<InsetWrap*>(in)->type();

does not exactly make things easier.

And if this is only good to fix the default name of the label entry
it should (a) say so in a comment, and (b) _not_ go in.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to