mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
BUG-1735 fixed exception when scaling down screenshot with text element
This commit is contained in:
parent
228dd301ba
commit
2c26d287ff
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ namespace Greenshot.Drawing {
|
|||
rect = GuiRectangle.GetGuiRectangle(Left, Top, Width, Height);
|
||||
|
||||
int pixelsAfter = rect.Width * rect.Height;
|
||||
float factor = pixelsAfter / pixelsBefore;
|
||||
float factor = pixelsAfter / (float)pixelsBefore;
|
||||
|
||||
float fontSize = GetFieldValueAsFloat(FieldType.FONT_SIZE);
|
||||
fontSize *= factor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue