BUG-1752 fixed horizontal alignment for textboxes

This commit is contained in:
JKlingen 2015-02-18 22:20:54 +01:00
commit 8900152190
2 changed files with 7 additions and 0 deletions

View file

@ -181,6 +181,8 @@ namespace Greenshot.Drawing {
_font.Dispose(); _font.Dispose();
_font = null; _font = null;
UpdateFormat(); UpdateFormat();
} else {
UpdateAlignment();
} }
UpdateTextBoxFormat(); UpdateTextBoxFormat();
@ -303,6 +305,10 @@ namespace Greenshot.Drawing {
throw; throw;
} }
UpdateAlignment();
}
private void UpdateAlignment() {
_stringFormat.Alignment = (StringAlignment)GetFieldValue(FieldType.TEXT_HORIZONTAL_ALIGNMENT); _stringFormat.Alignment = (StringAlignment)GetFieldValue(FieldType.TEXT_HORIZONTAL_ALIGNMENT);
_stringFormat.LineAlignment = (StringAlignment)GetFieldValue(FieldType.TEXT_VERTICAL_ALIGNMENT); _stringFormat.LineAlignment = (StringAlignment)GetFieldValue(FieldType.TEXT_VERTICAL_ALIGNMENT);
} }

View file

@ -15,6 +15,7 @@ Bugs Resolved:
* BUG-1735: Editor crashed when trying to scale down a screenshot with text element * BUG-1735: Editor crashed when trying to scale down a screenshot with text element
* BUG-1741: Fixed a bug in the confluence plug-in, error when searching for nothing, by improving the upload GUI. * BUG-1741: Fixed a bug in the confluence plug-in, error when searching for nothing, by improving the upload GUI.
* BUG-1750: Filename pattern is now checked for invalid characters to avoid exception when saving directly. * BUG-1750: Filename pattern is now checked for invalid characters to avoid exception when saving directly.
* BUG-1752: Fixed horizontal alignment for textboxes
Languages: Languages:
* Portuguese (Portugal): application translation updates + new translation for plugin and help, thanks to Luis Neves * Portuguese (Portugal): application translation updates + new translation for plugin and help, thanks to Luis Neves