From ca87bca0d1a120ef5acb8031575f1048fd4414dd Mon Sep 17 00:00:00 2001 From: RKrom Date: Thu, 30 Oct 2014 11:22:55 +0100 Subject: [PATCH] Fix for BUG-1688, we just needed to invalidate the TextBox when the TextContainer was invalidated. --- Greenshot/Drawing/TextContainer.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Greenshot/Drawing/TextContainer.cs b/Greenshot/Drawing/TextContainer.cs index 82e67f09e..dfe53fb84 100644 --- a/Greenshot/Drawing/TextContainer.cs +++ b/Greenshot/Drawing/TextContainer.cs @@ -133,6 +133,14 @@ namespace Greenshot.Drawing { PropertyChanged += TextContainer_PropertyChanged; FieldChanged += TextContainer_FieldChanged; } + + + public override void Invalidate() { + base.Invalidate(); + if (_textBox != null && _textBox.Visible) { + _textBox.Invalidate(); + } + } public void FitToText() { UpdateFormat();