Added a check for the shortcut switch “/EmbedImages” before allowing the paste of a screen shot

This commit is contained in:
John Jenko 2016-03-03 16:26:24 +00:00
parent 526214e0b5
commit b400a27cd4

View File

@ -2012,7 +2012,8 @@ namespace Volian.Controls.Library
// maps the Ctrl-V to btnPaste for those StepRTB's that are associated with the StepTabRibbon, i.e. // maps the Ctrl-V to btnPaste for those StepRTB's that are associated with the StepTabRibbon, i.e.
// EditItems & Grid cells. // EditItems & Grid cells.
IDataObject iData = Clipboard.GetDataObject(); IDataObject iData = Clipboard.GetDataObject();
if (iData.GetDataPresent(DataFormats.Dib)) // Device Independent Bitmap // only allow the paste of a screen shot image if using the shortcut switch "/EmbedImages"
if (Volian.Base.Library.VlnSettings.GetCommandFlag("EmbedImages") && iData.GetDataPresent(DataFormats.Dib)) // Device Independent Bitmap
{ {
System.Drawing.Image img = Clipboard.GetImage(); System.Drawing.Image img = Clipboard.GetImage();
ImageWidth = img.Width; ImageWidth = img.Width;