diff --git a/PROMS/Volian.Controls.Library/EditItem.cs b/PROMS/Volian.Controls.Library/EditItem.cs index 31f11f09..edcb14fa 100644 --- a/PROMS/Volian.Controls.Library/EditItem.cs +++ b/PROMS/Volian.Controls.Library/EditItem.cs @@ -1324,9 +1324,19 @@ namespace Volian.Controls.Library // if allowed by the format. Note that Before/After for figures is only Clipboard (if // image data exists in clipboard), or file. Doing RO images will be added later if needed - // this decision was made because of scope. + // C2019-008 - Check if sibling is a RO image. If so open the step properties panel and select the RO tab so that a RO Image (figure) can be selected. jsj 2019Feb20 private void AddImageIfNeeded(ItemInfo newItemInfo) { - if (this is ImageItem) ImageItem.AddImageIfNeeded(newItemInfo); + if (this is ImageItem) + { + if (MyItemInfo.MyContent.MyImage != null) // C2019-008 this is null if it is a RO Image + ImageItem.AddImageIfNeeded(newItemInfo); // this will use image in windows clipboard or display a file select dialog for an image + else + { + if (MyStepPanel != null && MyStepPanel.MyStepTabPanel != null) + MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OnLinkModifyRO(this, new StepPanelLinkEventArgs(null)); // C2019-008 This will open the RO tab on the Step Properties panel + } + } } public void AddSiblingAfter(int? type, bool updateStatus)