Skip to content

Commit 9885e31

Browse files
Fix clearAllSlot (#1020)
### Fix clearAllSlot ### Summarize your change. Add missing `}` for `if(!_skipConfirmations)`. ### Describe the reason for the change. While resolving the conflict between #1017 and #1016, the indentation of the code got changed and it resulted in a missing closing brace. Because of this issue, the following error is displayed in the console: `annotate_mode.mu, line 2210, char 41: method declaration not allowed in this context. Assertion failed: ((nparams == 0 && params == 0) || (nparams != 0 && params != 0)), function init, file Function.cpp, line 69.` Signed-off-by: Éloïse Brosseau <[email protected]>
1 parent f309fee commit 9885e31

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/plugins/rv-packages/annotate/annotate_mode.mu

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,15 +2074,14 @@ class: AnnotateMinorMode : MinorMode
20742074
{
20752075
let answer = alertPanel(true, InfoAlert, "Clear all annotations from the current timeline?", nil, "OK", "Cancel", nil);
20762076

2077-
if (answer != 0)
2078-
{
2079-
return;
2080-
}
2081-
else
2082-
{
2083-
clearAllPaint();
2077+
if (answer != 0)
2078+
{
2079+
return;
2080+
}
20842081
}
20852082

2083+
clearAllPaint();
2084+
20862085
updateFrameDependentState();
20872086
redraw();
20882087
}

0 commit comments

Comments
 (0)