Don't render TextEffect when size is LESS THAN or EQUAL TO 0

This commit is contained in:
Freshek
2019-04-23 15:58:23 +02:00
parent c5f63ec2c5
commit b3985b94f5
+3
View File
@@ -160,6 +160,9 @@ void TextEffect::redraw(double 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));