Re: [Plib-devel] [PATCH] puInput: don't segfault if one pastes an empty(NULL) paste buffer
Brought to you by:
sjbaker
From: Fay, J. F Dr C. U. A. 46 S. <joh...@eg...> - 2009-02-09 14:56:20
|
And that's taken care of as well. John F. Fay Technical Fellow Jacobs Technology TEAS Group 850-883-1294 -----Original Message----- From: Melchior FRANZ [mailto:mf...@us...] Sent: Monday, February 09, 2009 7:42 AM To: pli...@li... Subject: [Plib-devel] [PATCH] puInput: don't segfault if one pastes an empty(NULL) paste buffer diff --git a/src/pui/puInput.cxx b/src/pui/puInput.cxx index 006ad18..bca61e9 100644 --- a/src/pui/puInput.cxx +++ b/src/pui/puInput.cxx @@ -369,6 +369,9 @@ int puInput::checkKey ( int key, int updown ) case 0x16 /* ^V */ : /* Paste buffer into text */ { + if ( ! puGetPasteBuffer () ) + break ; + if ( select_start_position != select_end_position ) removeSelectRegion () ; ------------------------------------------------------------------------ ------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |