Block a background image transformation if the image in hold state.

This commit is contained in:
Roman Telezhynskyi 2022-02-07 18:40:11 +02:00
parent 922920c12c
commit 7452a94065

View File

@ -502,6 +502,11 @@ void VWidgetBackgroundImages::ApplyImageTransformation()
QUuid id = item->data(Qt::UserRole).toUuid(); QUuid id = item->data(Qt::UserRole).toUuid();
VBackgroundPatternImage image = m_doc->GetBackgroundImage(id); VBackgroundPatternImage image = m_doc->GetBackgroundImage(id);
if (image.IsNull() || image.Hold())
{
return;
}
const int index = ui->tabWidgetImageTransformation->currentIndex(); const int index = ui->tabWidgetImageTransformation->currentIndex();
if (ui->tabWidgetImageTransformation->indexOf(ui->tabTranslate) == index) if (ui->tabWidgetImageTransformation->indexOf(ui->tabTranslate) == index)
{ // translate { // translate