moved size check in text effect
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user