forked from mia/Aegisub
Fix crash in freehand draw mode of the vector clip visual tool
Originally committed to SVN as r4313.
This commit is contained in:
parent
94bffb5b9d
commit
519039131f
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue