mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 14:03:23 -07:00
BUG-1752 fixed horizontal alignment for textboxes
This commit is contained in:
parent
018e9dd090
commit
8900152190
2 changed files with 7 additions and 0 deletions
|
@ -181,6 +181,8 @@ namespace Greenshot.Drawing {
|
|||
_font.Dispose();
|
||||
_font = null;
|
||||
UpdateFormat();
|
||||
} else {
|
||||
UpdateAlignment();
|
||||
}
|
||||
UpdateTextBoxFormat();
|
||||
|
||||
|
@ -303,6 +305,10 @@ namespace Greenshot.Drawing {
|
|||
throw;
|
||||
}
|
||||
|
||||
UpdateAlignment();
|
||||
}
|
||||
|
||||
private void UpdateAlignment() {
|
||||
_stringFormat.Alignment = (StringAlignment)GetFieldValue(FieldType.TEXT_HORIZONTAL_ALIGNMENT);
|
||||
_stringFormat.LineAlignment = (StringAlignment)GetFieldValue(FieldType.TEXT_VERTICAL_ALIGNMENT);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue