projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
direct integrals for floatautos, clipboard fix
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
mwindowedit.C
diff --git
a/cinelerra-5.1/cinelerra/mwindowedit.C
b/cinelerra-5.1/cinelerra/mwindowedit.C
index 8fba7bfc95d48b110516db5e6ef81c743d8e59df..7710d4ada162471c62cb6c0d81b1fae6fd5156ed 100644
(file)
--- a/
cinelerra-5.1/cinelerra/mwindowedit.C
+++ b/
cinelerra-5.1/cinelerra/mwindowedit.C
@@
-1084,7
+1084,7
@@
void MWindow::paste()
int64_t len = gui->clipboard_len(BC_PRIMARY_SELECTION);
if( len ) {
int64_t len = gui->clipboard_len(BC_PRIMARY_SELECTION);
if( len ) {
- char *string = new char[len
+ 1
];
+ char *string = new char[len];
undo->update_undo_before();
gui->from_clipboard(string, len, BC_PRIMARY_SELECTION);
FileXML file;
undo->update_undo_before();
gui->from_clipboard(string, len, BC_PRIMARY_SELECTION);
FileXML file;
@@
-1203,7
+1203,7
@@
int MWindow::paste_automation()
if( len ) {
undo->update_undo_before();
if( len ) {
undo->update_undo_before();
- char *string = new char[len
+ 1
];
+ char *string = new char[len];
gui->from_clipboard(string, len, BC_PRIMARY_SELECTION);
FileXML file;
file.read_from_string(string);
gui->from_clipboard(string, len, BC_PRIMARY_SELECTION);
FileXML file;
file.read_from_string(string);
@@
-1234,7
+1234,7
@@
int MWindow::paste_default_keyframe()
if( len ) {
undo->update_undo_before();
if( len ) {
undo->update_undo_before();
- char *string = new char[len
+ 1
];
+ char *string = new char[len];
gui->from_clipboard(string, len, BC_PRIMARY_SELECTION);
FileXML file;
file.read_from_string(string);
gui->from_clipboard(string, len, BC_PRIMARY_SELECTION);
FileXML file;
file.read_from_string(string);