mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-30 20:32:02 -04:00
frontend: Skip background paint for invalid sizes
This commit is contained in:
@@ -657,7 +657,7 @@ void VolumeMeter::paintVTicks(QPainter &painter, int x, int y, int height)
|
||||
|
||||
void VolumeMeter::updateBackgroundCache(bool force)
|
||||
{
|
||||
if (!force && !size().isValid()) {
|
||||
if (!force && size().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user