diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-04-08 22:48:17 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-04-08 22:48:17 +0400 |
commit | 41b82595806c29adc9b55a371cb9ee66a202422e (patch) | |
tree | 07483d44696c49c927fe1137f47d0bf3ff1ce2aa /source/blender/windowmanager/intern | |
parent | 25d0720dc471926f63a628dc1d24d851c550ceaa (diff) |
2.5: clipboard fix to only do the conversion to \r\n line endings on windows.
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index a57fff58948..2675fba729a 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -687,6 +687,7 @@ char *WM_clipboard_text_get(int selection) void WM_clipboard_text_set(char *buf, int selection) { +#ifdef _WIN32 /* do conversion from \n to \r\n on Windows */ char *p, *p2, *newbuf; int newlen= 0; @@ -710,6 +711,9 @@ void WM_clipboard_text_set(char *buf, int selection) GHOST_putClipboard((GHOST_TInt8*)newbuf, selection); MEM_freeN(newbuf); +#else + GHOST_putClipboard((GHOST_TInt8*)buf, selection); +#endif } /* ************************************ */ |