Revision: 16923
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16923
Author: quorn
Date: 2008-10-04 23:04:16 +0200 (Sat, 04 Oct 2008)
Log Message:
-----------
Bugfix for [#17748] "Copy and paste under window since rev 16769"
Now actually copies to the clipboard on copy/cut when editing UI fields.
Revision Links:
--------------
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16769
Modified Paths:
--------------
trunk/blender/source/blender/src/interface.c
Modified: trunk/blender/source/blender/src/interface.c
===================================================================
--- trunk/blender/source/blender/src/interface.c 2008-10-04 20:22:43 UTC
(rev 16922)
+++ trunk/blender/source/blender/src/interface.c 2008-10-04 21:04:16 UTC
(rev 16923)
@@ -1843,13 +1843,14 @@
}
/* cut & copy */
else if ( (dev==XKEY) || (dev==CKEY) ) {
- /* copy the contents to the copypaste buffer */
+ /* copy the contents to the clipboard */
for(x= but->selsta; x <= but->selend; x++) {
if (x==but->selend)
buf[x] = '\0';
else
buf[(x - but->selsta)] = str[x];
}
+ putClipboard(buf, 0);
/* for cut only, delete the selection
afterwards */
if (dev==XKEY) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs