diff --git a/effects/internal/texteffect.cpp b/effects/internal/texteffect.cpp index 9655cfcac..279f406d9 100644 --- a/effects/internal/texteffect.cpp +++ b/effects/internal/texteffect.cpp @@ -156,13 +156,14 @@ TextEffect::TextEffect(Clip* c, const EffectMeta* em) : } void TextEffect::redraw(double timecode) { + if (size_val->GetDoubleAt(timecode) <= 0) { + return; + } + QColor bkg = set_color_button->GetColorAt(timecode); bkg.setAlpha(0); img.fill(bkg); - if (size_val->GetDoubleAt(timecode) <= 0) - return; - QPainter p(&img); p.setRenderHint(QPainter::Antialiasing); int padding = qRound(padding_field->GetDoubleAt(timecode));