|
|
@ -889,8 +889,10 @@ void UBGraphicsW3CWidgetItem::paint(QPainter * painter, const QStyleOptionGraphi |
|
|
|
rc = scene()->renderingContext(); |
|
|
|
rc = scene()->renderingContext(); |
|
|
|
|
|
|
|
|
|
|
|
if (rc == UBGraphicsScene::NonScreen || rc == UBGraphicsScene::PdfExport) { |
|
|
|
if (rc == UBGraphicsScene::NonScreen || rc == UBGraphicsScene::PdfExport) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (snapshot().isNull()) |
|
|
|
takeSnapshot(); |
|
|
|
takeSnapshot(); |
|
|
|
if (!snapshot().isNull()) |
|
|
|
|
|
|
|
painter->drawPixmap(0, 0, snapshot()); |
|
|
|
painter->drawPixmap(0, 0, snapshot()); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|