From 0e18aa7b830c6a0ca993d818100632bbf4c6a253 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 30 Mar 2017 13:56:30 +0000 Subject: [PATCH] =?UTF-8?q?B2017-067=20don=E2=80=99t=20give=20option=20to?= =?UTF-8?q?=20use=20Visio=20if=20it=20is=20not=20installed=20on=20the=20ma?= =?UTF-8?q?chine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index cb9dbe27..fc9729c4 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -1145,9 +1145,10 @@ namespace Volian.Controls.Library { _OleObjectEditors = 0;// no OLE Object Editors _EqnEdtPath = GetEqnEdt(); - if (_EqnEdtPath != null) _OleObjectEditors += 1; + // B2017-067 check for empty string as well as a null for paths to the Equation Editor and Visio + if (_EqnEdtPath != null && _EqnEdtPath != "") _OleObjectEditors += 1; _VisioPath = GetVisio(); - if (_VisioPath != null) _OleObjectEditors += 2; + if (_VisioPath != null && _VisioPath != "") _OleObjectEditors += 2; } return _OleObjectEditors; }