logo       

Re: extragear/graphics/kst/kst: msg#00223

kde.kst

Subject: Re: extragear/graphics/kst/kst

On Friday 22 July 2005 16:50, Andrew Walker wrote:
> SVN commit 437713 by arwalker:
>
> Need to reset the labels if a plot has been resized, to ensure the plot
> alignment and margins are correctly calculated.
>
> +void KstLabel::resize( ) {
> + Width = -1; // invalidate the width
> + LineSpacing = -1;
> + setDirty();
> +}

This is further circumventing the cache that tries to avoid re-parsing and
re-rendering the label twice each time through. It's probably not worth
hacking at the Kst2DPlot label code anymore. The new renderer is complete
and ready to be hooked into Kst2DPlot and we really have to go that route.
It's not only faster and more accurate, it also supports more features and
seems to render more attractively.

--
George Staikos
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise