Menu

#184 v2.5 - Auto Hidden Tabs silently Crash main form

v2.3
open
nobody
None
5
2013-11-28
2013-06-08
No

VS2005AutoHideStrip.cs: private void DrawTab(Graphics g, TabVS2005 tab)

  • sometimes the rectTabOrigin.Width is equal to 0, and this is invalid
    I have attached a 'fixed' version of VS2005AutoHideStrip.cs, that no longer has this problem.

the fix was to add:
if (rectTabOrigin.Width == 0) { rectTabOrigin.Width = 1; }

between: DockPanel.Skin.AutoHideStripSkin.TabGradient.LinearGradientMode;
and: g.FillPath(new LinearGradientBrush(rectTabOrigin, startColor, endColor, gradientMode), path);

-- just wanted to let you know of this issue so that you can import the change, or modify it, to fix silient crashes for auto hidden tabs.

Thanks, william

1 Attachments

Discussion

  • William DeRieux

    William DeRieux - 2013-06-08

    I have not been active on sourceforce for, awhile, and while I could have checked-in a patch to the source ... I wanted to pass this information on to you so you could incorporate it.

     

    Last edit: William DeRieux 2013-06-08
  • roken

    roken - 2013-11-28

    This project is no longer being maintained on SourceForge. Please visit us on GitHub via: http://dockpanelsuite.com

     

Log in to post a comment.