xulisong 6 سال پیش
والد
کامیت
3436fcb56c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      MBI/SAGA.RevitUtils/Windows/WinBase.cs

+ 1 - 1
MBI/SAGA.RevitUtils/Windows/WinBase.cs

@@ -160,7 +160,7 @@ namespace SAGA.RevitUtils.Windows
         protected void SetWindowOwner()
         {
             var winHelp = new WindowInteropHelper(this);
-            WindowHelper.SetWindowForeground(winHelp.Handle);
+            WindowHelper.SetWindowForeground(winHelp.EnsureHandle());
 
             winHelp.Owner = WindowHelper.HWndRevit.Handle;
         }