mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
Preview: fix glitchy PlantUML preview when no background is specified
This commit is contained in:
parent
313a8647a8
commit
f9e9735d5f
@ -1748,7 +1748,10 @@ QPixmap VUtils::svgToPixmap(const QByteArray &p_content,
|
||||
}
|
||||
|
||||
QPixmap pm(deSz);
|
||||
if (!p_background.isEmpty()) {
|
||||
if (p_background.isEmpty()) {
|
||||
// Fill a transparent background to avoid glitchy preview.
|
||||
pm.fill(QColor(255, 255, 255, 0));
|
||||
} else {
|
||||
pm.fill(p_background);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user