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:
Rodrigo Braz Monteiro 2007-08-03 17:22:06 +00:00
parent f556478902
commit 17c1a5801f
2 changed files with 10 additions and 0 deletions

View File

@ -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);

View File

@ -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;