Skip to content

Commit

Permalink
fixed an issue where the scale of a pdf item was not preserved when c…
Browse files Browse the repository at this point in the history
…opying the page to another document (thank you @letsfindaway for the help :))
  • Loading branch information
kaamui committed Feb 2, 2024
1 parent 993bb2f commit 44c7f7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/domain/UBGraphicsPDFItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ void UBGraphicsPDFItem::copyItemParameters(UBItem *copy) const
{
cp->setPos(this->pos());
cp->setTransform(this->transform());
cp->setScale(this->scale());
cp->setFlag(QGraphicsItem::ItemIsMovable, true);
cp->setFlag(QGraphicsItem::ItemIsSelectable, true);
cp->setData(UBGraphicsItemData::ItemLayerType, this->data(UBGraphicsItemData::ItemLayerType));
Expand Down

0 comments on commit 44c7f7b

Please sign in to comment.