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