From: Sup Yut Sum Date: Sat, 23 Mar 2013 18:35:41 +0000 (+0800) Subject: diff-xls.js: objExcelApp isn't even created when neither Office nor OpenOffice X-Git-Tag: REL_1.8.2.0_EXTERNAL~26 X-Git-Url: https://repo.or.cz/w/TortoiseGit.git/commitdiff_plain/a3e770afd93b24b6882157487e03ed4711e6c3d0 diff-xls.js: objExcelApp isn't even created when neither Office nor OpenOffice are installed so check for that instead of null Based on TortoiseSVN revision 24042 Signed-off-by: Sup Yut Sum --- diff --git a/contrib/diff-scripts/diff-xls.js b/contrib/diff-scripts/diff-xls.js index 4a0a1059a..ba148aa9c 100644 --- a/contrib/diff-scripts/diff-xls.js +++ b/contrib/diff-scripts/diff-xls.js @@ -209,7 +209,7 @@ function MsgBox(sMessage, iButtons, sTitle) function Abort(sMessage, sTitle) { MsgBox(sMessage, vbCritical, sTitle); - if (objExcelApp !== null) + if (objExcelApp) { objExcelApp.Quit(); }