チェンジセット 1682 (default)


以下の違いを無視:
日時:
2024/09/03 12:04:53 (5週前)
更新者:
hizuya@…
ログメッセージ:
  • 有効・無効の判定が正しくなく、処理が返ってこなくなっていたのを修正。
場所:
framework/trunk
ファイル:
1個の追加
1個の更新

凡例:

未変更
追加
削除
  • framework/trunk/WebLibrary/Sources/WebUtility.cs

    r1616 r1682  
    11311131        internal static bool IsEnabled(Control control) 
    11321132        { 
    1133             Control current = control; 
    1134  
    1135             while (current != null) 
     1133            while (control != null) 
    11361134            { 
    11371135                WebControl webControl = control as WebControl; 
    1138                 if (webControl != null) 
    1139                 { 
    1140                     if (!webControl.Enabled) 
    1141                     { 
    1142                         return false; 
    1143                     } 
    1144  
    1145                     continue; 
    1146                 } 
    1147  
    1148                 current = current.Parent; 
     1136                if (webControl != null && !webControl.Enabled) 
     1137                { 
     1138                    return false; 
     1139                } 
     1140 
     1141                control = control.Parent; 
    11491142            } 
    11501143 
詳しい使い方は TracChangeset を参照してください。