mirror of https://github.com/odrling/Aegisub
Issue #514 - Fixed crash with vector clip. Also fixed a minor bug that caused visual typesetting to flag the script as modified even if nothing changed.
Originally committed to SVN as r1466.
This commit is contained in:
parent
f556478902
commit
17c1a5801f
|
@ -257,7 +257,14 @@ void VisualTool::OnMouseEvent (wxMouseEvent &event) {
|
|||
//////////
|
||||
// Commit
|
||||
void VisualTool::Commit(bool full) {
|
||||
// Get grid
|
||||
SubtitlesGrid *grid = VideoContext::Get()->grid;
|
||||
|
||||
// See if anything actually changed
|
||||
AssDialogue *diag = grid->GetDialogue(grid->editBox->linen);
|
||||
if (diag && grid->editBox->TextEdit->GetText() == diag->Text) return;
|
||||
|
||||
// Commit changes
|
||||
grid->editBox->CommitText();
|
||||
if (full) grid->ass->FlagAsModified(_("visual typesetting"));
|
||||
grid->CommitChanges(false,!full);
|
||||
|
|
|
@ -362,6 +362,9 @@ void VisualToolVectorClip::InitializeHold() {
|
|||
|
||||
// Insert
|
||||
else {
|
||||
// Check if there is at least one curve to split
|
||||
if (spline.curves.size() == 0) return;
|
||||
|
||||
// Split the curve
|
||||
SplineCurve *c1 = spline.GetCurve(curve);
|
||||
SplineCurve c2;
|
||||
|
|
Loading…
Reference in New Issue