From: <sm...@us...> - 2008-06-04 15:06:16
|
Revision: 8463 http://plplot.svn.sourceforge.net/plplot/?rev=8463&view=rev Author: smekal Date: 2008-06-04 08:06:22 -0700 (Wed, 04 Jun 2008) Log Message: ----------- Fixed bug - context was not refreshed for resize event for external dc. Modified Paths: -------------- trunk/drivers/wxwidgets_gc.cpp Modified: trunk/drivers/wxwidgets_gc.cpp =================================================================== --- trunk/drivers/wxwidgets_gc.cpp 2008-06-04 15:05:06 UTC (rev 8462) +++ trunk/drivers/wxwidgets_gc.cpp 2008-06-04 15:06:22 UTC (rev 8463) @@ -181,10 +181,11 @@ if( m_bitmap ) delete m_bitmap; m_bitmap = new wxBitmap( bm_width, bm_height, 32 ); - ((wxMemoryDC*)m_dc)->SelectObject( *m_bitmap ); /* select new bitmap */ + ((wxMemoryDC*)m_dc)->SelectObject( *m_bitmap ); /* select new bitmap */ + } + if( m_dc ) m_context = wxGraphicsContext::Create( *((wxMemoryDC*)m_dc) ); - } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |