Skip to content

Commit bb20f68

Browse files
committed
Fix #54: preserve background brush when splitting VisualLineElement
1 parent e57d86d commit bb20f68

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ICSharpCode.AvalonEdit/Rendering/VisualLineElement.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ protected void SplitHelper(VisualLineElement firstPart, VisualLineElement second
166166
firstPart.TextRunProperties = TextRunProperties.Clone();
167167
if (secondPart.TextRunProperties == null)
168168
secondPart.TextRunProperties = TextRunProperties.Clone();
169+
firstPart.BackgroundBrush = BackgroundBrush;
170+
secondPart.BackgroundBrush = BackgroundBrush;
169171
}
170172

171173
/// <summary>

0 commit comments

Comments
 (0)