Re: redrawing math

2002-03-12 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Tue, Mar 12, 2002 at 03:42:25PM +0100, Lars Gullik Bjønnes wrote: >> | Because the 'body' will get too ugly for my taste... >> >> What body? >> can't you just post the function is question here? > > | void MathCursor::touch() | { | cursor_type

Re: redrawing math

2002-03-12 Thread Andre Poenitz
On Tue, Mar 12, 2002 at 03:42:25PM +0100, Lars Gullik Bjønnes wrote: > | Because the 'body' will get too ugly for my taste... > > What body? > can't you just post the function is question here? void MathCursor::touch() { cursor_type::const_iterator it = Cursor_.begin(); cursor_t

Re: redrawing math

2002-03-12 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Tue, Mar 12, 2002 at 02:19:49PM +, Angus Leeming wrote: >> Why not std::for_each ? > | Because the 'body' will get too ugly for my taste... What body? can't you just post the function is question here? -- Lgb

Re: redrawing math

2002-03-12 Thread Andre Poenitz
On Tue, Mar 12, 2002 at 02:19:49PM +, Angus Leeming wrote: > Why not std::for_each ? Because the 'body' will get too ugly for my taste... Andre' -- André Pönitz .. [EMAIL PROTECTED]

Re: redrawing math

2002-03-12 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Tuesday 12 March 2002 2:14 pm, Lars Gullik Bjønnes wrote: >> and use >> >> cursor_type::const_iterator it = Cursor_.begin(); >> cursor_type::const_iterator end = Cursor_.end(); >> for (; it != end; ++it) { >> >> idom and you will make

Re: redrawing math

2002-03-12 Thread Angus Leeming
On Tuesday 12 March 2002 2:14 pm, Lars Gullik Bjønnes wrote: > and use > > cursor_type::const_iterator it = Cursor_.begin(); > cursor_type::const_iterator end = Cursor_.end(); > for (; it != end; ++it) { > > idom and you will make me happy. Why not std::for_each ? Angus

Re: redrawing math

2002-03-12 Thread Andre Poenitz
On Tue, Mar 12, 2002 at 03:14:54PM +0100, Lars Gullik Bjønnes wrote: > and use > > cursor_type::const_iterator it = Cursor_.begin(); > cursor_type::const_iterator end = Cursor_.end(); > for (; it != end; ++it) { Done already in my local tree before your intervention... Andre' -- A

Re: redrawing math

2002-03-12 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | I attach a patch to make more effective use of the metrics caches of the | math insets. On a 50x50 table it reduces the number of calls to | MathXArray::metrics() by a factor of 60 thereby bringing down the amount | iof time spent in metrics calculation