R. Lahaye wrote:

> 
>>please try the attached patch. it works perfectly for me, but
>>it looks at bit too easy ... ;-)
>>
> 
> With this patch LyX gets indeed the boundingbox for my Grace files!
> 
> However, when I now do a "Insert->Graphics...", I get the usual
> square on the canvas ("No image"), but also all of a sudden an
> Alert dialog that says:
> 
>         No information for converting from   to EPS
>                        [Dismiss]
> 
> After I clicked [Dismiss], the Graphics dialog pops up.
> 
> This is an incorrect behaviour.
> You need to check somehow whether there's no image in the graphics
> inset, before going for the bounding box.


you can change this in frontendes/controlelrs/ControlGraphics.c:

string const ControlGraphics::readBB(string const & file)
{
         if (file.empty())               // happens when opening GUI
                 return string();
[...]


Herbert

-- 
http://www.lyx.org/help/

Reply via email to