moved size check in text effect

This commit is contained in:
itsmattkc
2019-05-02 21:40:18 +10:00
parent 49610d10ce
commit 782edec37b
+4 -3
View File
@@ -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));