Skip to content

Commit 6f4d7d0

Browse files
committed
CrossOver crash workaround...
1 parent ac9c977 commit 6f4d7d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

External/Plugins/ASCompletion/Win32/FixedTreeView.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,11 @@ protected override void OnMouseUp(MouseEventArgs e)
105105

106106
public FixedTreeView()
107107
{
108-
SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
109108
if (Environment.OSVersion.Platform == PlatformID.Win32NT && Environment.OSVersion.Version.Major < 6)
109+
{
110110
SetStyle(ControlStyles.UserPaint, true);
111+
}
112+
else SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
111113
}
112114

113115
protected override void OnHandleCreated(EventArgs e)

0 commit comments

Comments
 (0)