Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit a5a3507

Browse files
committed
[[ Bug 16118 ]] Fix some mismatched MCerrordialog increments
1 parent 75b3a63 commit a5a3507

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

docs/notes/bugfix-16118.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Error dialog doesn't open correctly in some circumstances

engine/src/cmdss.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2989,6 +2989,7 @@ void MCSubwindow::exec_ctxt(MCExecContext &ctxt)
29892989
else
29902990
MCInterfaceExecDrawerStack(ctxt, (MCStack *)optr, *t_parent_name, thisstack == True, t_pos, t_align);
29912991
}
2992+
MCerrorlock--;
29922993
break;
29932994
}
29942995
case WM_PULLDOWN:

engine/src/exec-strings.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2545,6 +2545,7 @@ void MCStringsExecSort(MCExecContext& ctxt, Sort_type p_dir, Sort_type p_form, M
25452545
if (MCValueGetTypeCode(t_temp_items[i]) != kMCValueTypeCodeString)
25462546
t_all_strings = false;
25472547
}
2548+
MCerrorlock--;
25482549
t_items = t_temp_items;
25492550
}
25502551
else

engine/src/gradient.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,10 @@ bool MCGradientFillGetProperties(MCExecContext& ctxt, MCGradientFill* p_gradient
448448
t_success = MCArrayStoreValue(*v, kMCCompareExact, *t_key, t_prop_value);
449449
}
450450

451+
MCerrorlock--;
452+
451453
if (t_success)
452454
{
453-
MCerrorlock--;
454-
455455
r_value . arrayref_value = MCValueRetain(*v);
456456
r_value . type = kMCExecValueTypeArrayRef;
457457
return true;

0 commit comments

Comments
 (0)