xulisong 6 tahun lalu
induk
melakukan
3436fcb56c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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;
         }