Skip to content

Commit c9c2e1f

Browse files
committed
Fix VBE.HostApplication to inject the vbe into PowerPointApp.
1 parent 9146a79 commit c9c2e1f

File tree

1 file changed

+3
-3
lines changed
  • Rubberduck.VBEEditor/SafeComWrappers/VBA

1 file changed

+3
-3
lines changed

Rubberduck.VBEEditor/SafeComWrappers/VBA/VBE.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ public IHostApplication HostApplication()
187187
}
188188

189189
var host = Path.GetFileName(System.Windows.Forms.Application.ExecutablePath).ToUpperInvariant();
190-
//This needs the VBE as a ctor argument.
191-
if (host.Equals("SLDWORKS.EXE"))
190+
//These need the VBE as a ctor argument.
191+
if (host.Equals("SLDWORKS.EXE") || host.Equals("POWERPNT.EXE"))
192192
{
193-
return new SolidWorksApp(this);
193+
return (IHostApplication)Activator.CreateInstance(HostAppMap[host], this);
194194
}
195195
//The rest don't.
196196
if (HostAppMap.ContainsKey(host))

0 commit comments

Comments
 (0)