From a7d4bf13fa309a76edcd52ebeb53b94904b117df Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 25 Apr 2013 21:25:05 +0200 Subject: [PATCH] [DEV] correction of the clipboard copy and middle to export --- sources/ewol/renderer/os/gui.X11.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/ewol/renderer/os/gui.X11.cpp b/sources/ewol/renderer/os/gui.X11.cpp index 7631325e..b64d190c 100644 --- a/sources/ewol/renderer/os/gui.X11.cpp +++ b/sources/ewol/renderer/os/gui.X11.cpp @@ -670,7 +670,6 @@ void X11_Run(void) if (NULL != atomNameTarget) { XFree(atomNameTarget); } } #endif - const char * magatTextToSend = NULL; etk::UString tmpData = ""; if (req->selection == XAtomeSelection) { @@ -678,7 +677,8 @@ void X11_Run(void) } else if (req->selection == XAtomeClipBoard) { tmpData = ewol::clipBoard::Get(ewol::clipBoard::clipboardStd); } - magatTextToSend = tmpData.c_str(); + etk::Char tmpValueStoredTimeToSend = tmpData.c_str(); + const char * magatTextToSend = tmpValueStoredTimeToSend; Atom listOfAtom[4]; if(strlen(magatTextToSend) == 0 ) { respond.xselection.property= None;