From 7ecbbf2e5c34cabea4796adeb8588d56b87ca9d2 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 3 Jul 2009 18:35:46 +0000 Subject: [PATCH] Fixed an issue with the Set Start/End to Video and Snap to Scene hotkeys and toolbar buttons where any uncommited changes in the editbox would be reverted. They now behave the same as setting the time via the text boxes. Originally committed to SVN as r3095. --- aegisub/src/frame_main_events.cpp | 2 +- aegisub/src/subs_grid.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/frame_main_events.cpp b/aegisub/src/frame_main_events.cpp index 755bbf9d5..0cb9cba1d 100644 --- a/aegisub/src/frame_main_events.cpp +++ b/aegisub/src/frame_main_events.cpp @@ -1228,7 +1228,7 @@ void FrameMain::OnSnapToScene (wxCommandEvent &event) { } // Commit - SubsBox->editBox->Update(); + SubsBox->editBox->Update(true); SubsBox->ass->FlagAsModified(_("snap to scene")); SubsBox->CommitChanges(); } diff --git a/aegisub/src/subs_grid.cpp b/aegisub/src/subs_grid.cpp index 6e1f567ee..798bb9483 100644 --- a/aegisub/src/subs_grid.cpp +++ b/aegisub/src/subs_grid.cpp @@ -1473,7 +1473,7 @@ void SubtitlesGrid::SetSubsToVideo(bool start) { if (modified) { ass->FlagAsModified(_("timing")); CommitChanges(); - editBox->Update(); + editBox->Update(true); } }