mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
BUG-1711: Fix for a stacktrace, as something was accessed before it was drawn.
This commit is contained in:
parent
089eec769e
commit
bba978c209
2 changed files with 11 additions and 6 deletions
|
@ -290,7 +290,9 @@ namespace Greenshot.Drawing {
|
|||
}
|
||||
|
||||
public virtual void Invalidate() {
|
||||
_parent.Invalidate(DrawingBounds);
|
||||
if (Status != EditStatus.UNDRAWN) {
|
||||
_parent.Invalidate(DrawingBounds);
|
||||
}
|
||||
}
|
||||
|
||||
public void AlignToParent(HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue