BUG-1735 fixed exception when scaling down screenshot with text element

This commit is contained in:
JKlingen 2015-01-25 14:55:32 +01:00
parent 228dd301ba
commit 2c26d287ff

View file

@ -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;