diff options
author | Thomas Dinges <blender@dingto.org> | 2010-12-12 23:21:59 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2010-12-12 23:21:59 +0300 |
commit | 040112d6ae9ecf65b92bdc98e95d36cf5b5c18dc (patch) | |
tree | fedc4bcd5d0e36907a7fad587658615d153e7c46 /source/blender/windowmanager | |
parent | 32d82da9e45e4233afe8fcb15728589bd6e82278 (diff) |
Fix for compile on windows:
*Variable declaration after return statement
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index dc9ccd54832..a4fa646c043 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -1030,9 +1030,6 @@ char *WM_clipboard_text_get(int selection) void WM_clipboard_text_set(char *buf, int selection) { - if(G.background) - return; - #ifdef _WIN32 /* do conversion from \n to \r\n on Windows */ char *p, *p2, *newbuf; @@ -1060,6 +1057,9 @@ void WM_clipboard_text_set(char *buf, int selection) #else GHOST_putClipboard((GHOST_TInt8*)buf, selection); #endif + + if(G.background) + return; } /* ******************* progress bar **************** */ |