Fix typos in code

It passed "make check" on Linux

Change-Id: Id7c7ac1b88d290ed71f03fa28dec144bcd29b692
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101590
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini
2020-08-28 11:59:42 +02:00
committed by Julien Nabet
parent 0d773f0b07
commit f10a4e2010
3 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ public abstract class ScriptEditor {
this.context = context;
}
public boolean isMacroExectionEnabled() {
public boolean isMacroExecutionEnabled() {
XNameAccess xNameAccess = null;
try {
String sAccess = "com.sun.star.configuration.ConfigurationAccess";

View File

@@ -170,7 +170,7 @@ public class ScriptEditorForBeanShell extends ScriptEditor implements ActionList
*
*/
public Object execute() throws Exception {
if (!isMacroExectionEnabled()) {
if (!isMacroExecutionEnabled()) {
showErrorMessage("Macro Execution has been disabled.");
return null;
}

View File

@@ -196,7 +196,7 @@ public class ScriptEditorForJavaScript extends ScriptEditor {
private ScriptEditorForJavaScript(XScriptContext context, URL url) {
setContext(context);
// Need to check that before showing the window. Checking in execute() has no effect.
if (!isMacroExectionEnabled()) {
if (!isMacroExecutionEnabled()) {
showErrorMessage("Macro Execution has been disabled.");
return ;
}