From caba46bf0ba840b37a89388c81566871aa6c727c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 27 Jun 2010 07:53:14 +0000 Subject: [PATCH] Remove features for deleted control points Originally committed to SVN as r4620. --- aegisub/src/visual_tool.h | 4 ++-- aegisub/src/visual_tool_vector_clip.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aegisub/src/visual_tool.h b/aegisub/src/visual_tool.h index 5a783324b..3918f12fe 100644 --- a/aegisub/src/visual_tool.h +++ b/aegisub/src/visual_tool.h @@ -168,7 +168,7 @@ protected: // @brief Called at the end of a drag virtual void CommitDrag(FeatureType* feature) { } - /// @brief Called when there's stuff + /// @brief Called by Refresh when there's stuff virtual void DoRefresh() { } /// @brief Add a feature (and its line) to the selection @@ -205,7 +205,7 @@ public: virtual bool Update() { return false; }; /// @brief Draw stuff virtual void Draw()=0; - /// @brief Called by stuff when there's stuff + /// @brief Called by stuff when there's stuff, and sometimes when there isn't stuff void Refresh(); /// @brief Constructor diff --git a/aegisub/src/visual_tool_vector_clip.cpp b/aegisub/src/visual_tool_vector_clip.cpp index cd667c999..c319ade82 100644 --- a/aegisub/src/visual_tool_vector_clip.cpp +++ b/aegisub/src/visual_tool_vector_clip.cpp @@ -318,6 +318,7 @@ bool VisualToolVectorClip::InitializeDrag(VisualToolVectorClipDraggableFeature* spline.erase(feature->curve); CommitDrag(feature); curFeature = NULL; + PopulateFeatureList(); ClearSelection(false); Commit(true); return false;