Block a background image transformation if the image in hold state.
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user