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