Fix for BUG-1688, we just needed to invalidate the TextBox when the TextContainer was invalidated.

This commit is contained in:
RKrom 2014-10-30 11:22:55 +01:00
parent 69c5780c6f
commit ca87bca0d1

View file

@ -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();