mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
BUG-2225: This should fix an immediate issue, NullReferenceException, where the color is null.
This commit is contained in:
parent
423633a19a
commit
d9c56ff2a9
2 changed files with 5 additions and 5 deletions
|
@ -62,8 +62,8 @@ namespace Greenshot.Drawing {
|
|||
|
||||
public override void Draw(Graphics graphics, RenderMode rm) {
|
||||
int lineThickness = GetFieldValueAsInt(FieldType.LINE_THICKNESS);
|
||||
Color lineColor = GetFieldValueAsColor(FieldType.LINE_COLOR);
|
||||
Color fillColor = GetFieldValueAsColor(FieldType.FILL_COLOR);
|
||||
Color lineColor = GetFieldValueAsColor(FieldType.LINE_COLOR, Color.Red);
|
||||
Color fillColor = GetFieldValueAsColor(FieldType.FILL_COLOR, Color.Transparent);
|
||||
bool shadow = GetFieldValueAsBool(FieldType.SHADOW);
|
||||
Rectangle rect = GuiRectangle.GetGuiRectangle(Left, Top, Width, Height);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue