From 20e85066dcf9769fabaf525ba0123fe0f1d1078c Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 12 Jun 2012 17:27:21 +0100 Subject: [PATCH] TPT: Fix crash when pasting text on platforms which don't support it d0b57d7d99 --- src/Misc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Misc.cpp b/src/Misc.cpp index 7dcb5fe29..d2f5717a6 100644 --- a/src/Misc.cpp +++ b/src/Misc.cpp @@ -406,6 +406,7 @@ void clipboard_push_text(char * text) char * clipboard_pull_text() { #ifdef MACOSX + printf("Not implemented: get text from clipboard\n"); #elif defined WIN32 if (OpenClipboard(NULL)) { @@ -423,10 +424,11 @@ char * clipboard_pull_text() } } #elif (defined(LIN32) || defined(LIN64)) && defined(SDL_VIDEO_DRIVER_X11) + printf("Not implemented: get text from clipboard\n"); #else printf("Not implemented: get text from clipboard\n"); - return ""; #endif + return ""; } int register_extension()