From: Andrew Ross <firstname.lastname@example.org>
To: phil rosenberg <email@example.com>; "firstname.lastname@example.org" <email@example.com>
Sent: Wednesday, 10 October 2012, 23:15
Subject: Re: [Plplot-devel] Fw: wxWidgets driver and line breaks (fwd)
On Mon, Oct 01, 2012 at 10:05:41AM +0100, Andrew Ross wrote:
> On Mon, Oct 01, 2012 at 09:51:38AM +0100, Andrew Ross wrote:
> > Hi Phil,
> > I don't have AGG currently so haven't tested that (I'll try later).
> > The basic backend (backend=0) is fine (see attached screenshot). The
> > problems are with the
wxGraphicsContext backend (backend=1).
> Sorry backend=2 not backend=1.
> > I'm using your v2 patch with the current svn.
I've got to the bottom of the problem. Turns out that at least on my
version of wxwidgets the function GetTextExtent doesn't update the
width if the string length is zero (as is the face for a FCI code).
Setting the width to zero before calling GetTextExtent cures the
problem for me and should have no adverse impact. Now I've got to the
bottom of this I'll go ahead and commit your patch.
Thanks, and sorry its taken so long to debug.