Skip to content

Commit af3c9d7

Browse files
committed
Fixed a crash if a node in the treeview is selected and all messages are removed.
1 parent 9465adc commit af3c9d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Logbert/Dialogs/Docking/FrmLogTree.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ private void DrawNodeText(DrawTreeNodeEventArgs e)
519519
bounds.Y -= 1;
520520
bounds.X += 1;
521521

522-
if (e.Node.Level == 0 && e.Node.PrevNode == null)
522+
if (e.Node.Level == 0 && e.Node.Parent == null)
523523
{
524524
bounds = new Rectangle(
525525
tvLoggerTree.Margin.Size.Width + ThemeManager.CurrentApplicationTheme.Resources.Images["FrmLogTreeNodeExpanded"].Width + 9

0 commit comments

Comments
 (0)