Fixed bug 2166761 for all known cases except from document-loading.
This commit is contained in:
parent
065993b82e
commit
1879f075a7
@ -738,12 +738,12 @@ void TrackView::editEnterValue()
|
|||||||
sync::Track::KeyFrame newKey;
|
sync::Track::KeyFrame newKey;
|
||||||
if (t.isKeyFrame(editRow)) newKey = *t.getKeyFrame(editRow); // copy old key
|
if (t.isKeyFrame(editRow)) newKey = *t.getKeyFrame(editRow); // copy old key
|
||||||
newKey.value = float(_tstof(editString.c_str())); // modify value
|
newKey.value = float(_tstof(editString.c_str())); // modify value
|
||||||
|
editString.clear();
|
||||||
|
|
||||||
SyncDocument::Command *cmd = doc->getSetKeyFrameCommand(int(trackIndex), editRow, newKey);
|
SyncDocument::Command *cmd = doc->getSetKeyFrameCommand(int(trackIndex), editRow, newKey);
|
||||||
doc->exec(cmd);
|
doc->exec(cmd);
|
||||||
|
|
||||||
editString.clear();
|
SendMessage(GetParent(getWin()), WM_CURRVALDIRTY, 0, 0);
|
||||||
// invalidatePos(editTrack, editRow);
|
|
||||||
InvalidateRect(getWin(), NULL, FALSE);
|
InvalidateRect(getWin(), NULL, FALSE);
|
||||||
}
|
}
|
||||||
else MessageBeep(-1);
|
else MessageBeep(-1);
|
||||||
@ -786,7 +786,8 @@ void TrackView::editToggleInterpolationType()
|
|||||||
SyncDocument::Command *cmd = doc->getSetKeyFrameCommand(int(trackIndex), int(lower->first), newKey);
|
SyncDocument::Command *cmd = doc->getSetKeyFrameCommand(int(trackIndex), int(lower->first), newKey);
|
||||||
doc->exec(cmd);
|
doc->exec(cmd);
|
||||||
|
|
||||||
invalidateRange(editTrack, editTrack, int(lower->first), int(upper->first));
|
SendMessage(GetParent(getWin()), WM_CURRVALDIRTY, 0, 0);
|
||||||
|
InvalidateRect(getWin(), NULL, FALSE);
|
||||||
}
|
}
|
||||||
else MessageBeep(-1);
|
else MessageBeep(-1);
|
||||||
}
|
}
|
||||||
@ -828,8 +829,9 @@ void TrackView::editDelete()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
doc->exec(multiCmd);
|
doc->exec(multiCmd);
|
||||||
|
|
||||||
|
SendMessage(GetParent(getWin()), WM_CURRVALDIRTY, 0, 0);
|
||||||
InvalidateRect(getWin(), NULL, FALSE);
|
InvalidateRect(getWin(), NULL, FALSE);
|
||||||
// invalidateRange(selectLeft, selectRight, selectTop, selectBottom);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -878,6 +880,8 @@ void TrackView::editBiasValue(float amount)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
doc->exec(multiCmd);
|
doc->exec(multiCmd);
|
||||||
|
|
||||||
|
SendMessage(GetParent(getWin()), WM_CURRVALDIRTY, 0, 0);
|
||||||
invalidateRange(selectLeft, selectRight, selectTop, selectBottom);
|
invalidateRange(selectLeft, selectRight, selectTop, selectBottom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -975,7 +979,7 @@ LRESULT TrackView::onKeyDown(UINT keyCode, UINT /*flags*/)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case VK_END:
|
case VK_END:
|
||||||
if (GetKeyState(VK_CONTROL) < 0) setEditTrack(getTrackCount() - 1);
|
if (GetKeyState(VK_CONTROL) < 0) setEditTrack(int(getTrackCount()) - 1);
|
||||||
else setEditRow(rows - 1);
|
else setEditRow(rows - 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1092,6 +1096,7 @@ LRESULT TrackView::windowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||||||
case WM_CUT: editCut(); break;
|
case WM_CUT: editCut(); break;
|
||||||
case WM_PASTE:
|
case WM_PASTE:
|
||||||
editPaste();
|
editPaste();
|
||||||
|
SendMessage(GetParent(getWin()), WM_CURRVALDIRTY, 0, 0);
|
||||||
InvalidateRect(hwnd, NULL, FALSE);
|
InvalidateRect(hwnd, NULL, FALSE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user