Update transformation origin when move an image.

This commit is contained in:
Roman Telezhynskyi 2022-02-04 16:36:45 +02:00
parent d4f791f0ee
commit 94e7c7d612

View File

@ -195,6 +195,7 @@ void VBackgroundImageControls::UpdateControls()
prepareGeometryChange(); prepareGeometryChange();
m_image = m_doc->GetBackgroundImage(m_id); m_image = m_doc->GetBackgroundImage(m_id);
m_originPos = m_image.BoundingRect().center();
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------