Juergen Spitzmueller wrote:

> http://bugzilla.lyx.org/show_bug.cgi?id=1523
> 
> This bug is already fixed (properly) in 1.4. I know that the attached
> patch for 1.3.x is an ugly hack, but it works.
> 
> Jürgen

Urrrggg

#include <iostream>
#include <iomanip>

        ostringstream buffer;
        buffer << abs(static_cast<int>(val_/100)) << '.'
               << std::setw(2) << std::setfill('0')
               << abs(static_cast<int>(val_)%100);

        switch (unit_) {
        case PTW:
                buffer << "\\textwidth";
                beak;
        case PCW:
                buffer << "\\columnwidth";
                beak;
        case PPW:
                buffer << "\\paperwidth";
                beak;
        case PLW:
                buffer << "\\linewidth";
                beak;
        case PPH:
                buffer << "\\paperheight";
                beak;
        case PTH:
                buffer << "\\textheight";
                beak;
        default:

-- 
Angus

Reply via email to