• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得windowscocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

OpenTweenのfork


Commit MetaInfo

修訂877ba645c7c81cfaba1fd74d65f28ef9cc2e1d7c (tree)
時間2012-02-18 23:19:54
作者kiri_feather <kiri_feather@user...>
CommiterKimura Youichi

Log Message

SplitContainer4_ResizeでDistanceにマイナス値設定して例外発生するバグ修正

Change Summary

差異

--- a/Tween/Tween.vb
+++ b/Tween/Tween.vb
@@ -10637,10 +10637,13 @@ RETRY:
1063710637
1063810638 Private Sub SplitContainer4_Resize(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SplitContainer4.Resize
1063910639 If Me.WindowState = FormWindowState.Minimized Then Exit Sub
10640- If SplitContainer4.Height < SplitContainer4.SplitterWidth + SplitContainer4.Panel2MinSize + SplitContainer4.SplitterDistance Then
10640+ If SplitContainer4.Panel2Collapsed Then Exit Sub
10641+ If SplitContainer4.Height < SplitContainer4.SplitterWidth + SplitContainer4.Panel2MinSize + SplitContainer4.SplitterDistance AndAlso
10642+ SplitContainer4.Height - SplitContainer4.SplitterWidth - SplitContainer4.Panel2MinSize > 0 Then
1064110643 SplitContainer4.SplitterDistance = SplitContainer4.Height - SplitContainer4.SplitterWidth - SplitContainer4.Panel2MinSize
1064210644 End If
10643- If SplitContainer4.Panel2.Height > 90 Then
10645+ If SplitContainer4.Panel2.Height > 90 AndAlso
10646+ SplitContainer4.Height - SplitContainer4.SplitterWidth - 90 > 0 Then
1064410647 SplitContainer4.SplitterDistance = SplitContainer4.Height - SplitContainer4.SplitterWidth - 90
1064510648 End If
1064610649 End Sub