Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

>>>>>> "Maurizio" == Maurizio Monge <[EMAIL PROTECTED]> writes:
>
| Maurizio> Hello. I compiled lyx cvs (lyx-devel) on and amd64-pc-linux,
| Maurizio> with gcc-3.4, latest binutils and qt font-end (qt-3.3.2).
>
| Maurizio> I get:
>
| Maurizio>     terminate called after throwing an instance of
| Maurizio> 'std::logic_error' what(): basic_string::_S_construct NULL
| Maurizio> not valid Aborted
>
| The problem seems to be related to the use of the "sans" font family
| which is unknown from qt. Could you try the attached patch which has
| been send by Kornel Benko a while ago?
>
| Before applying this patch, though, I would like to understand why we
| have those font values now, and why they do not work. Anyone has
| ideas?

I think you have nailed the reason for the crash. But I don't like
your patch :-)

(I am not sure that I like my own either... probably we could just do
a:

        return QFontInfo(font).family();

and rely on the implicit conversion to std::string.)


-- 
        Lgb

Reply via email to