Curve editor cut & paste Fixes #1788

This commit is contained in:
Romolo Manfredini
2015-05-11 00:36:31 +02:00
parent 68e3e28557
commit 3a69982985
5 changed files with 696 additions and 3790 deletions
+1 -1
View File
@@ -563,7 +563,7 @@ void CustomFunctionsPanel::fswPaste()
if (mimeData->hasFormat("application/x-companion-fsw")) {
QByteArray fswData = mimeData->data("application/x-companion-fsw");
CustomFunctionData *fsw = &functions[selectedFunction];
memcpy(fsw, fswData.mid(0, sizeof(CustomFunctionData)).constData(), sizeof(CustomFunctionData));
memcpy(fsw, fswData.constData(), sizeof(CustomFunctionData));
lock = true;
populateSwitchCB(fswtchSwtch[selectedFunction], functions[selectedFunction].swtch, generalSettings, model ? SpecialFunctionsContext : GlobalFunctionsContext);
populateFuncCB(fswtchFunc[selectedFunction], functions[selectedFunction].func);