From d395c00f9d9fb980e65a074ae2558b16fe4fc39d Mon Sep 17 00:00:00 2001 From: JKlingen Date: Fri, 10 Oct 2014 21:29:28 +0200 Subject: [PATCH] BUG-1667 removed horizontal alignment of textbox in input mode, as it caused problems with textbox focus and could not be implemented consistently anyway (no vertical alignment possible) --- Greenshot/Drawing/TextContainer.cs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Greenshot/Drawing/TextContainer.cs b/Greenshot/Drawing/TextContainer.cs index aecda59b6..1ae089cdd 100644 --- a/Greenshot/Drawing/TextContainer.cs +++ b/Greenshot/Drawing/TextContainer.cs @@ -308,26 +308,6 @@ namespace Greenshot.Drawing { Color lineColor = GetFieldValueAsColor(FieldType.LINE_COLOR); _textBox.ForeColor = lineColor; _textBox.Font = _font; - StringAlignment horizontalAlignment = (StringAlignment)GetFieldValue(FieldType.TEXT_HORIZONTAL_ALIGNMENT); - switch (horizontalAlignment) { - case StringAlignment.Center: - _textBox.TextAlign = HorizontalAlignment.Center; - break; - case StringAlignment.Far: - if (_textBox.RightToLeft != RightToLeft.Yes) { - _textBox.TextAlign = HorizontalAlignment.Right; - } else { - _textBox.TextAlign = HorizontalAlignment.Left; - } - break; - case StringAlignment.Near: - if (_textBox.RightToLeft != RightToLeft.Yes) { - _textBox.TextAlign = HorizontalAlignment.Left; - } else { - _textBox.TextAlign = HorizontalAlignment.Right; - } - break; - } } void textBox_KeyDown(object sender, KeyEventArgs e) {