ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/deps/WeifenLuo.WinFormsUI.Docking/WinFormsUI/Docking/VS2005AutoHideStrip.cs
(Generate patch)

Comparing trunk/deps/WeifenLuo.WinFormsUI.Docking/WinFormsUI/Docking/VS2005AutoHideStrip.cs (file contents):
Revision 639 by william, Sat Jun 8 20:21:53 2013 UTC vs.
Revision 640 by william, Sat Jun 8 20:31:20 2013 UTC

--- trunk/deps/WeifenLuo.WinFormsUI.Docking/WinFormsUI/Docking/VS2005AutoHideStrip.cs	2013/06/08 20:21:58	639
+++ trunk/deps/WeifenLuo.WinFormsUI.Docking/WinFormsUI/Docking/VS2005AutoHideStrip.cs	2013/06/08 20:31:20	640
@@ -361,6 +361,13 @@ namespace WeifenLuo.WinFormsUI.Docking
                 Color startColor = DockPanel.Skin.AutoHideStripSkin.TabGradient.StartColor;
                 Color endColor = DockPanel.Skin.AutoHideStripSkin.TabGradient.EndColor;
                 LinearGradientMode gradientMode = DockPanel.Skin.AutoHideStripSkin.TabGradient.LinearGradientMode;
+
+                if (rectTabOrigin.Width == 0)
+                {
+                    // rectangle width cannot be 0
+                    rectTabOrigin.Width = 1;
+                }
+
                 g.FillPath(new LinearGradientBrush(rectTabOrigin, startColor, endColor, gradientMode), path);
                 g.DrawPath(PenTabBorder, path);