B2017-073: Pasting image into RO image from context menu crashes

This commit is contained in:
Kathy Ruffing 2017-05-19 14:19:45 +00:00
parent 8280de55e2
commit 2055fa863e

View File

@ -708,6 +708,11 @@ namespace Volian.Controls.Library
setdata = true;
}
}
else if (MyItemInfo.MyContent.ContentRoUsageCount > 0 && img != null)
{
MessageBox.Show("Cannot replace an existing RO figure/image. Use the Step Properties panel/RO tab.", "Warning, no paste/replace for RO images.");
return;
}
else if (img != null) // no existing image, be sure there is valid data in clipboard
setdata = true;
if (setdata)