Re: [Patch] fix sizes when drawing arrays

2002-10-01 Thread Andre Poenitz
On Wed, Oct 02, 2002 at 08:07:19AM +0200, Andre' Poenitz wrote: > On Tue, Oct 01, 2002 at 11:29:25PM +0200, Lars Gullik Bjønnes wrote: > > I am not sure that the standard demands that the object cannot be > > reclaimd before the end of scope. > > Aehm. You are right of course. It dies at the end

Re: [Patch] fix sizes when drawing arrays

2002-10-01 Thread Andre Poenitz
On Tue, Oct 01, 2002 at 11:29:25PM +0200, Lars Gullik Bjønnes wrote: > I am not sure that the standard demands that the object cannot be > reclaimd before the end of scope. Aehm. You are right of course. It dies at the end of the full expression which is too early. So there must be a dummy varia

Re: [Patch] fix sizes when drawing arrays

2002-10-01 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | Andre Poenitz <[EMAIL PROTECTED]> writes: | | | On Tue, Oct 01, 2002 at 06:26:15PM +0100, Angus Leeming wrote: | | > Looks like we've been found out as ignorant. One more reason for | | > IU: people might read the code ;-) | | | | It's like the

Re: [Patch] fix sizes when drawing arrays

2002-10-01 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Tue, Oct 01, 2002 at 06:26:15PM +0100, Angus Leeming wrote: | > Looks like we've been found out as ignorant. One more reason for | > IU: people might read the code ;-) | | It's like the the Path from support/path.[Ch] It is not. Path() will not c

Re: [Patch] fix sizes when drawing arrays

2002-10-01 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Tue, Oct 01, 2002 at 06:04:33PM +0100, Angus Leeming wrote: | > I know that is semantics only, but is this not more transparent: | > | > void MathArrayInset::metrics(MathMetricsInfo & mi) const | > { | > + if (mi.base.style == LM_ST_DISPLAY) | >

Re: [Patch] fix sizes when drawing arrays

2002-10-01 Thread Andre Poenitz
On Tue, Oct 01, 2002 at 06:26:15PM +0100, Angus Leeming wrote: > > With the tiny problem that it does not work. The Changer > > undoes its changes when it goes out of scope. When I think about it: Maybe you'll like the following patch more: Andre' -- Those who desire to give up Freedom in orde

Re: [Patch] fix sizes when drawing arrays

2002-10-01 Thread Andre Poenitz
On Tue, Oct 01, 2002 at 06:26:15PM +0100, Angus Leeming wrote: > Looks like we've been found out as ignorant. One more reason for > IU: people might read the code ;-) It's like the the Path from support/path.[Ch] And changing temporarily single members it is _much_ faster than making full copie

Re: [Patch] fix sizes when drawing arrays

2002-10-01 Thread Angus Leeming
On Tuesday 01 October 2002 6:16 pm, Andre Poenitz wrote: > With the tiny problem that it does not work. The Changer > undoes its changes when it goes out of scope. Looks like we've been found out as ignorant. One more reason for IU: people might read the code ;-) Angus

Re: [Patch] fix sizes when drawing arrays

2002-10-01 Thread Andre Poenitz
On Tue, Oct 01, 2002 at 06:04:33PM +0100, Angus Leeming wrote: > I know that is semantics only, but is this not more transparent: > > void MathArrayInset::metrics(MathMetricsInfo & mi) const > { > + if (mi.base.style == LM_ST_DISPLAY) > + MathStyleChanger(mi.base, LM_ST_TEXT); >

Re: [Patch] fix sizes when drawing arrays

2002-10-01 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Tuesday 01 October 2002 5:50 pm, Andre Poenitz wrote: | > The inherited 'draw' is not good enough (Fonts too large) | > The patch fixes this properly and is straight-forward. | > | > Ok? | > | > Andre' | | I know that is semantics only, but is this

Re: [Patch] fix sizes when drawing arrays

2002-10-01 Thread Angus Leeming
On Tuesday 01 October 2002 5:50 pm, Andre Poenitz wrote: > The inherited 'draw' is not good enough (Fonts too large) > The patch fixes this properly and is straight-forward. > > Ok? > > Andre' I know that is semantics only, but is this not more transparent: void MathArrayInset::metrics(MathMetr

[Patch] fix sizes when drawing arrays

2002-10-01 Thread Andre Poenitz
The inherited 'draw' is not good enough (Fonts too large) The patch fixes this properly and is straight-forward. Ok? Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson) Index: math_arrayinset.C =