Skip to content

Commit 8cb7efc

Browse files
author
Sébastien Geiser
committed
Refactoring
1 parent de8263a commit 8cb7efc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RegexDialog/SearchableTextControl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class SearchableTextControl : Control
3030
private TextBlock displayTextBlock;
3131
private TextPointer StartSelectPosition;
3232
private TextPointer EndSelectPosition;
33-
private bool isSelecting = false;
33+
private bool isSelecting;
3434

3535
public string SelectedText = "";
3636

@@ -59,7 +59,7 @@ protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
5959

6060
protected override void OnMouseMove(MouseEventArgs e)
6161
{
62-
if(isSelecting && displayTextBlock != null && IsSelectable)
62+
if (isSelecting && displayTextBlock != null && IsSelectable)
6363
{
6464
base.OnMouseMove(e);
6565
SelectTextFromMouseAction(e);

0 commit comments

Comments
 (0)