Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-09 Thread Allan Rae
Combining a couple of emails into one... | On Tue, Apr 09, 2002 at 01:26:37PM +0200, Lars Gullik Bjønnes wrote: >> I want to use C++ so I prefere the latest compilers that have the >> implementations that conform best to C++. I also want to use the C++ >> standard libraries... The trouble is yo

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-09 Thread Andre Poenitz
On Tue, Apr 09, 2002 at 03:11:02PM +0200, Lars Gullik Bjønnes wrote: > Then we should work at getting faster compiles, not to change the > features used from C++ or its library. Agreed. > A lot of LyX code is not nice at all, and makes the compile really > slow. (~2000 line functions...) Agreed

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-09 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Tue, Apr 09, 2002 at 02:01:48PM +0200, Lars Gullik Bjønnes wrote: >> | Other people have other goals. Sometimes most goals can be reached if >> | everybody moves to somewhat less dogmatic point of views... >> >> As in "don't use modern C++ features"

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-09 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Tue, Apr 09, 2002 at 01:26:37PM +0200, Lars Gullik Bjønnes Andre> wrote: >> I want to use C++ so I prefere the latest compilers that have the >> implementations that conform best to C++. I also want to use the >> C++ standard li

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-09 Thread Andre Poenitz
On Tue, Apr 09, 2002 at 02:01:48PM +0200, Lars Gullik Bjønnes wrote: > | Other people have other goals. Sometimes most goals can be reached if > | everybody moves to somewhat less dogmatic point of views... > > As in "don't use modern C++ features"? > and "Don't use templates?" No. As in "think

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-09 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Tue, Apr 09, 2002 at 01:26:37PM +0200, Lars Gullik Bjønnes wrote: >> I want to use C++ so I prefere the latest compilers that have the >> implementations that conform best to C++. I also want to use the C++ >> standard libraries... > | Other people h

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-09 Thread Andre Poenitz
On Tue, Apr 09, 2002 at 01:26:37PM +0200, Lars Gullik Bjønnes wrote: > I want to use C++ so I prefere the latest compilers that have the > implementations that conform best to C++. I also want to use the C++ > standard libraries... Other people have other goals. Sometimes most goals can be reache

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-09 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Allan" == Allan Rae <[EMAIL PROTECTED]> writes: > | Allan> You will surely notice that there is a 100MB difference between | Allan> the du tests of both runs. There is also an 8 minute difference | Allan> in `make` times. This difference ge

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-09 Thread Jean-Marc Lasgouttes
> "Allan" == Allan Rae <[EMAIL PROTECTED]> writes: Allan> You will surely notice that there is a 100MB difference between Allan> the du tests of both runs. There is also an 8 minute difference Allan> in `make` times. This difference gets even larger when there is Allan> any user activity. Th

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-08 Thread Allan Rae
On Thu, 4 Apr 2002, Lars Gullik Bjønnes wrote: > Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > | Andre> Which compiler that we support does not have a sufficient > | Andre> std::string? > > > | There are bugs in compaq cxx 6.2 with std::string (an extraneous > | assert), but I think it is

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-06 Thread Herbert Voss
>> > using today's cvs (as of two minutes ago) all works perfectly as far as >> > I'm concerned. I attach small screenshots of the LyX and LaTeX views to >> > prove it. >> >> Angus, I think Rob is right. Change your zoom-factor of the >> prefs to e.g. 150% and you'll see, that the lyx view

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-05 Thread Angus Leeming
On Friday 05 April 2002 11:35 am, Herbert Voss wrote: > Angus Leeming wrote: > >>The values of the (X,Y)-coordinates for Bottom left have > >>equal effect for both LyX View and LaTeX View. > >>However, the value of Top right x-coordinate cuts off > >>different slabs for LyX and for LaTeX! > >> > >

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-05 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Lars> | Lars> but only for stringstream, what about all other api's that use | | Lars> Lars> std::string? >>> | Lars> | Th

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-05 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Lars> Lars> but only for stringstream, what about all other api's that use | Lars> Lars> std::string? >> Lars> | There are not so many of them, actually. ifstream/ofstream | La

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-05 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Lars> but only for stringstream, what about all other api's that use | Lars> std::string? > | There are not so many of them, actually. ifstream/ofstream | constructors, and ??? Most boost libs and other libs. -- Lgb

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-05 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> I haven't gcc 3.0 installed anymore, but that is also pretty Lars> good, but 3.1. is a lot better. And this will most likely Lars> continue. Hmm, what I see is mostly higher compile times and higher disk footprint for the sam

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-05 Thread Herbert Voss
Angus Leeming wrote: >>The values of the (X,Y)-coordinates for Bottom left have >>equal effect for both LyX View and LaTeX View. >>However, the value of Top right x-coordinate cuts off >>different slabs for LyX and for LaTeX! >> >>PS: use "clip to bounding box" to see these effects. >> > > Rob,

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-05 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> At least with Gcc 3.1 the difference is not great. > | Thanks for doing it. I could not find the time yesterday. The | difference is still great with gcc 2.9x. And gcc 3.1 i

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-05 Thread Angus Leeming
On Friday 05 April 2002 1:41 am, R. Lahaye wrote: > Hi, > > I saw a long thread on this subject. > Downloading CVS in the meantime, has still a wrong > use of Top right y-coordinate for LyX View. > (The Top right y-coordinate is somehow also used > as the Bottom left y-coordinate). > > For final L

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> At least with Gcc 3.1 the difference is not great. Thanks for doing it. I could not find the time yesterday. The difference is still great with gcc 2.9x. And gcc 3.1 is not released yet :) I think that lyxstring is really bet

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread R. Lahaye
Hi, I saw a long thread on this subject. Downloading CVS in the meantime, has still a wrong use of Top right y-coordinate for LyX View. (The Top right y-coordinate is somehow also used as the Bottom left y-coordinate). For final LaTeX output (DVI or Postscript) these y-coordinates are used corr

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > | | Andre> Which compiler that we support does not have a sufficient | | Andre> std::string? >> | | There are bugs in compaq cxx 6.2 with std::string (an extraneous | | assert), but I think it is

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Thu, Apr 04, 2002 at 03:37:11PM +0200, Jean-Marc Lasgouttes Andre> wrote: Which compiler that we support does not have a Andre> sufficient std::string? >> There are bugs in compaq cxx 6.2 with std::string (an extraneous >> asse

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Andre Poenitz
On Thu, Apr 04, 2002 at 10:03:08AM -0400, Garst R. Reese wrote: > > >> if (!isValidLength(a) || !isValidLength(b) || > > >> !isValidLength(c) || !isValidLength(d)) > > > > this looks better to me > > > > if !(isValidLength(a) && isValidLength(b) && > >

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Angus Leeming
On Thursday 04 April 2002 3:24 pm, Herbert Voss wrote: > + * FormGraphics.C (apply): "0" is an invalid Bounding Box dimension. > + "0pt" is what we need here. > > this is not correct Angus. the default is a bb without > a unit, like the ones from the (e)ps-files. and what does isValid

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Angus Leeming
On Thursday 04 April 2002 3:13 pm, Herbert Voss wrote: > Angus Leeming wrote: > > Incidentally, Herbert, LyX no longer reads the bounding box of this eps > > file. It used to! Care to have a look? > > here is the patch. I had to split the update in two > parts, one for the updateBB(). Didn't use a

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Herbert Voss
Angus Leeming wrote: > On Thursday 04 April 2002 2:36 pm, Lars Gullik Bjønnes wrote: > >>Angus Leeming <[EMAIL PROTECTED]> writes: >> | Very neat. I'll apply it once I've tested it works. Oh... feel free to wait now... if it works as it is it works... >>| >>| Well that's the p

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Herbert Voss
Herbert Voss wrote: > here is the patch. I had to split the update in two > parts, one for the updateBB(). Didn't use a namespace, > in fact of these 5 xforms objects. > > teste it with a new insert->graphic and changing > an existing one. sorry Angus, cut the diff for FormDocument ... should

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Angus Leeming
On Thursday 04 April 2002 2:36 pm, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > >> | Very neat. I'll apply it once I've tested it works. > >> > >> Oh... feel free to wait now... if it works as it is it works... > | > | Well that's the point. There's some bug somewhere.

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Herbert Voss
Angus Leeming wrote: > Incidentally, Herbert, LyX no longer reads the bounding box of this eps file. > It used to! Care to have a look? here is the patch. I had to split the update in two parts, one for the updateBB(). Didn't use a namespace, in fact of these 5 xforms objects. teste it with a

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Andre Poenitz
On Thu, Apr 04, 2002 at 03:37:11PM +0200, Jean-Marc Lasgouttes wrote: > Andre> Which compiler that we support does not have a sufficient > Andre> std::string? > > There are bugs in compaq cxx 6.2 with std::string (an extraneous > assert), but I think it is fixed in 6.3 (cannot upgrade, though).

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Andre> Which compiler that we support does not have a sufficient | Andre> std::string? > | There are bugs in compaq cxx 6.2 with std::string (an extraneous | assert), but I think it is fixed in 6.3 (cannot upgrade, though). > | Also lyxstring mea

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> Which compiler that we support does not have a sufficient Andre> std::string? Also, lyxstring as a few asserts of our own (from Lars, actually), which have been very helpful to find some bugs that normal string did not detect. JM

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Angus Leeming
On Thursday 04 April 2002 2:37 pm, Jean-Marc Lasgouttes wrote: > There are bugs in compaq cxx 6.2 with std::string (an extraneous > assert), but I think it is fixed in 6.3 (cannot upgrade, though). you don't need to surely. Just fix it locally and add a comment to INSTALL.cxx or whatever.

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: >> | Very neat. I'll apply it once I've tested it works. >> >> Oh... feel free to wait now... if it works as it is it works... > | Well that's the point. There's some bug somewhere. Now I discover that LyX is | no longer reading the BB info from file. >

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Thu, Apr 04, 2002 at 03:13:11PM +0200, Lars Gullik Bjønnes Andre> wrote: >> Note that the problems will lyxstring will only get bigger by >> clinging to it we introduce a lot of ineffencies (conversion >> between lyxstring->

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Thu, Apr 04, 2002 at 03:13:11PM +0200, Lars Gullik Bjønnes wrote: >> Note that the problems will lyxstring will only get bigger by >> clinging to it we introduce a lot of ineffencies (conversion between >> lyxstring->char*->std::string and back..

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Andre Poenitz
On Thu, Apr 04, 2002 at 03:13:11PM +0200, Lars Gullik Bjønnes wrote: > Note that the problems will lyxstring will only get bigger by > clinging to it we introduce a lot of ineffencies (conversion between > lyxstring->char*->std::string and back... with all the extra > allocations that result i

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Thursday 04 April 2002 1:24 pm, Herbert Voss wrote: >> Lars Gullik Bjønnes wrote: >> > | Sorry, you've lost me. What good would that be? Perhaps some sample >> > | code? I learn best through examples. >> > >> > First you decide what the form om a val

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Thu, Apr 04, 2002 at 02:09:44PM +0200, Lars Gullik Bjønnes wrote: >> | std::ifstream is(bb.c_str()); >>then this would be: >>std::istringstream is(bb); > | Aehm... does this work with lyxstrings, too? I seem to rememb

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Andre Poenitz
On Thu, Apr 04, 2002 at 02:47:09PM +0200, Herbert Voss wrote: > >> std::ifstream is(bb.c_str()); > >> string a, b, c, d; > >> is >> a >> b >> c >> d; > >> if (!isValidLength(a) || !isValidLength(b) || > >> !isValidLength(c) || !isValidLength(d)) > > >

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Angus Leeming
On Thursday 04 April 2002 1:47 pm, Herbert Voss wrote: > Angus Leeming wrote: > > On Thursday 04 April 2002 1:24 pm, Herbert Voss wrote: > >>Lars Gullik Bjønnes wrote: > >>>| Sorry, you've lost me. What good would that be? Perhaps some sample > >>>| code? I learn best through examples. > >>> > >>>

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Herbert Voss
Angus Leeming wrote: > On Thursday 04 April 2002 1:24 pm, Herbert Voss wrote: > >>Lars Gullik Bjønnes wrote: >> >>>| Sorry, you've lost me. What good would that be? Perhaps some sample >>>| code? I learn best through examples. >>> >>>First you decide what the form om a valid bb string is: >>> >>

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Angus Leeming
On Thursday 04 April 2002 1:13 pm, Andre Poenitz wrote: > On Thu, Apr 04, 2002 at 02:09:44PM +0200, Lars Gullik Bjønnes wrote: > > | std::ifstream is(bb.c_str()); > > > >then this would be: > >std::istringstream is(bb); > > Aehm... does this work with lyxstrings, t

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Angus Leeming
On Thursday 04 April 2002 1:24 pm, Herbert Voss wrote: > Lars Gullik Bjønnes wrote: > > | Sorry, you've lost me. What good would that be? Perhaps some sample > > | code? I learn best through examples. > > > > First you decide what the form om a valid bb string is: > > but graphicx also accepts bb=

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Andre Poenitz
On Thu, Apr 04, 2002 at 02:09:44PM +0200, Lars Gullik Bjønnes wrote: > | std::ifstream is(bb.c_str()); >then this would be: >std::istringstream is(bb); Aehm... does this work with lyxstrings, too? I seem to remember people adding .c_str() to my code in similar cir

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Andre Poenitz
On Thu, Apr 04, 2002 at 02:24:08PM +0200, Herbert Voss wrote: > std::ifstream is(bb.c_str()); > string a, b, c, d; > is >> a >> b >> c >> d; > if (!isValidLength(a) || !isValidLength(b) || > !isValidLength(c) || !isValidLength(d)) >

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Herbert Voss
Lars Gullik Bjønnes wrote: > | Sorry, you've lost me. What good would that be? Perhaps some sample code? I > | learn best through examples. > > First you decide what the form om a valid bb string is: but graphicx also accepts bb=1cm 1cm 1cm 1cm; why not doing it in the same way than in Contr

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Thursday 04 April 2002 12:01 pm, Lars Gullik Bjønnes wrote: >> Angus Leeming <[EMAIL PROTECTED]> writes: >> | where BoundingBox bb is set so: >> | >> | BoundingBox::BoundingBox(string const & bb) >> | { >> |if (bb.empty()) >> |return;

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Angus Leeming
On Thursday 04 April 2002 12:01 pm, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > | where BoundingBox bb is set so: > | > | BoundingBox::BoundingBox(string const & bb) > | { > | if (bb.empty()) > | return; > | > | string tmp1; > | string tmp2 = sp

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | where BoundingBox bb is set so: > | BoundingBox::BoundingBox(string const & bb) | { | if (bb.empty()) | return; > | string tmp1; | string tmp2 = split(bb, tmp1, ' '); | if (!isValidLength(tmp1)) | retu

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Angus Leeming
On Thursday 04 April 2002 11:49 am, Herbert Voss wrote: > Angus Leeming wrote: > > On Thursday 04 April 2002 11:26 am, Herbert Voss wrote: > >>R. Lahaye wrote: > >>>"R. Lahaye" wrote: > Note: this muddling up is only for the LyX View on the canvas; in the > final DVI or Postscript View the

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Herbert Voss
Angus Leeming wrote: > On Thursday 04 April 2002 11:26 am, Herbert Voss wrote: > >>R. Lahaye wrote: >> >>>"R. Lahaye" wrote: >>> Note: this muddling up is only for the LyX View on the canvas; in the final DVI or Postscript View the bounding box coordinates seem to work fine. >>>

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Angus Leeming
On Thursday 04 April 2002 11:13 am, Angus Leeming wrote: > > maybe that I'm totally wrong here (Angus??) but the boundingbox is never > > used for the lyx-view. I just committed a small patch that ensures that the BoundingBox member variables are always initialised. Shouldn't affect Rob's proble

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Angus Leeming
On Thursday 04 April 2002 11:26 am, Herbert Voss wrote: > R. Lahaye wrote: > > "R. Lahaye" wrote: > >>Note: this muddling up is only for the LyX View on the canvas; in the > >> final DVI or Postscript View the bounding box coordinates seem to work > >> fine. > > > > Actually, now I think that the

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread Herbert Voss
R. Lahaye wrote: > "R. Lahaye" wrote: > >>Note: this muddling up is only for the LyX View on the canvas; in the final >>DVI or Postscript View the bounding box coordinates seem to work fine. >> > > Actually, now I think that the bounding box limits have different effects > on the LyX View and o

Re: Graphics bug: Error with bounding box y-coordinate in LyX View

2002-04-04 Thread R. Lahaye
"R. Lahaye" wrote: > > Note: this muddling up is only for the LyX View on the canvas; in the final > DVI or Postscript View the bounding box coordinates seem to work fine. Actually, now I think that the bounding box limits have different effects on the LyX View and on the final LaTeX output (DVI