Fix crash in freehand draw mode of the vector clip visual tool

Originally committed to SVN as r4313.
This commit is contained in:
Thomas Goyne 2010-05-20 08:55:08 +00:00
parent 94bffb5b9d
commit 519039131f

View file

@ -522,7 +522,7 @@ void VisualToolVectorClip::CommitHold() {
/// @brief Refresh /// @brief Refresh
/// ///
void VisualToolVectorClip::DoRefresh() { void VisualToolVectorClip::DoRefresh() {
if (!dragging) { if (!dragging && !holding) {
// Get line // Get line
AssDialogue *line = GetActiveDialogueLine(); AssDialogue *line = GetActiveDialogueLine();
if (!line) return; if (!line) return;
@ -531,7 +531,6 @@ void VisualToolVectorClip::DoRefresh() {
wxString vect; wxString vect;
int scale; int scale;
vect = GetLineVectorClip(line,scale,inverse); vect = GetLineVectorClip(line,scale,inverse);
//if (!vect.IsEmpty()) return;
spline.DecodeFromASS(vect); spline.DecodeFromASS(vect);
PopulateFeatureList(); PopulateFeatureList();
} }