Re: clearing the cache

From: <msevior_at_physics.unimelb.edu.au>
Date: Thu Sep 22 2005 - 01:22:49 CEST

> Hi Martin,
>
> I have a talk this afternoon and won't probably make it online again. I
> have found another cache inside gtkmathview which is not reset with the
> tricks we've been trying before. It has to do with glyphs, so I'm pretty
> sure it is the reason why glyphBox is only called once.
>
> Removing that cache made the print preview render something closer to
> the right formula, even though something is still broken (but at this
> point it is probably outside of gtkmathview).
>
> How do we clear that cache? Hmmm, one way would be to re-create the
> MathGraphicDevice. This is costly though, and since it is shared among
> several objects, it basically means that the whole embedded object must
> be re-instantiated. The obvious solution would be to add a method like
> "reset" or "clearCache". Of course this means that I have to change the
> exported API (which has happened already for the 0.7.5-pre-1
> pre-release).
>
> If you like, I can implement that API and you could verify that it
> "works" (in the sense that it has an effect, like the one I've been
> experiencing). It remains to be understood why the print and print
> preview still look bad, but with the math view behaving more
> consistently it may be easier to figure out where the other bug is.
>

High Luca,
          OK go ahead with the API change to clear the second cache. I
suspect windows can't print at all because of it.

Cheers

Martin
> HTH,
> --luca
>
Received on Thu Sep 22 01:23:56 2005

This archive was generated by hypermail 2.1.8 : Thu Sep 22 2005 - 01:23:56 CEST