BUG-2104: Fixed an initialization issue, and a problem with drawing. This should make the Speechbubble more stable!

This commit is contained in:
Robin 2017-01-13 21:44:20 +01:00
commit 952e521805

View file

@ -56,9 +56,10 @@ namespace Greenshot.Drawing
/// <summary> /// <summary>
/// Restore the target gripper /// Restore the target gripper
/// </summary> /// </summary>
/// <param name="context"></param> /// <param name="streamingContext">StreamingContext</param>
protected override void OnDeserialized(StreamingContext context) protected override void OnDeserialized(StreamingContext streamingContext)
{ {
base.OnDeserialized(streamingContext);
InitAdorner(Color.Green, _storedTargetGripperLocation); InitAdorner(Color.Green, _storedTargetGripperLocation);
} }
#endregion #endregion
@ -303,7 +304,6 @@ namespace Greenshot.Drawing
tail.Dispose(); tail.Dispose();
// Draw the text // Draw the text
UpdateFormat();
DrawText(graphics, rect, lineThickness, lineColor, shadow, StringFormat, Text, Font); DrawText(graphics, rect, lineThickness, lineColor, shadow, StringFormat, Text, Font);
} }