From b400a27cd476ddb7b18979dc9b15bebf50086edf Mon Sep 17 00:00:00 2001 From: John Date: Thu, 3 Mar 2016 16:26:24 +0000 Subject: [PATCH] =?UTF-8?q?Added=20a=20check=20for=20the=20shortcut=20swit?= =?UTF-8?q?ch=20=E2=80=9C/EmbedImages=E2=80=9D=20before=20allowing=20the?= =?UTF-8?q?=20paste=20of=20a=20screen=20shot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/StepRTB.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index 078c7691..42c017ce 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -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. // EditItems & Grid cells. 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(); ImageWidth = img.Width;