Skip to content

Commit

Permalink
item: Also pass QStyleOptionGraphicsItem to child items in toPixmap()
Browse files Browse the repository at this point in the history
  • Loading branch information
Tectu committed May 11, 2024
1 parent 184f142 commit 10452a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qschematic/items/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ QPixmap Item::toPixmap(QPointF& hotSpot, qreal scale)

painter.save();
painter.translate(child->pos());
child->paint(&painter, nullptr, nullptr);
child->paint(&painter, &option, nullptr);
painter.restore();
}

Expand Down

0 comments on commit 10452a6

Please sign in to comment.