/[RomCheater]/trunk/deps/WeifenLuo.WinFormsUI.Docking/WinFormsUI/Docking/VS2005AutoHideStrip.cs
ViewVC logotype

Diff of /trunk/deps/WeifenLuo.WinFormsUI.Docking/WinFormsUI/Docking/VS2005AutoHideStrip.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- 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 @@
                 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);
 

 

  ViewVC Help
Powered by ViewVC 1.1.22