>>>>> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes:

Herbert> [EMAIL PROTECTED] wrote:
>> his one-line fix to updateWidgetsFromLengthString,


Herbert> it maybe not important, but I suppose that the unit "%"

Herbert> will be misleading to a lot of users. Shouldn't we better
Herbert> delete this one? Otherwise we always have the questions: 100%
Herbert> of what?

This reminds me of a question I had when working on those lyxlength
recently:

The latex output for the different type of % gives:

        switch(unit_) {
        case PW:
        case PE:
            buffer << abs(static_cast<int>(val_/100)) << "."
                   << abs(static_cast<int>(val_)%100) << "\\columnwidth";
            break;
        case PP:
            buffer << abs(static_cast<int>(val_/100)) << "."
                   << abs(static_cast<int>(val_)%100) << "\\paperwidth";
            break;
        case PL:
            buffer << abs(static_cast<int>(val_/100)) << "."
                   << abs(static_cast<int>(val_)%100) << "\\linewidth";
            break;

This means that we do not have anything which does % of \textwidth!
(\paperwidth was \pagewidth before, which does not exist).

I think that PW, which is I think related to "%" should have a 
        case PW:
            buffer << abs(static_cast<int>(val_/100)) << "."
                   << abs(static_cast<int>(val_)%100) << "\\textwidth";
            break;

Thoughts?

JMarc

Reply via email to