That's great that you've found this. I was starting to dispair. Will you make the necessary change(s) to the patch or do you need me to do it?
 
Phil

From: Andrew Ross <andrewross@users.sourceforge.net>
To: phil rosenberg <philip_rosenberg@yahoo.com>; "plplot-devel@lists.sourceforge.net" <plplot-devel@lists.sourceforge.net>
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.

Phil,

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.

Andrew