mirror of https://github.com/odrling/Aegisub
Fix undo problems with cross and drag visual tools.
Originally committed to SVN as r4388.
This commit is contained in:
parent
da6c47c20b
commit
ac42fcda5d
|
@ -79,7 +79,7 @@ void VisualToolCross::Update() {
|
||||||
SetOverride(line, L"\\pos", wxString::Format(L"(%i,%i)", x1 - dx, y1 - dy));
|
SetOverride(line, L"\\pos", wxString::Format(L"(%i,%i)", x1 - dx, y1 - dy));
|
||||||
}
|
}
|
||||||
|
|
||||||
Commit(false, _("positioning"));
|
Commit(true, _("positioning"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief Draw
|
/// @brief Draw
|
||||||
|
|
|
@ -356,7 +356,7 @@ void VisualToolDrag::Update() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Commit(false, _("positioning"));
|
Commit(true, _("positioning"));
|
||||||
|
|
||||||
GenerateFeatures();
|
GenerateFeatures();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue