mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -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.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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue