From kde-commits Thu May 29 19:39:39 2008 From: David Nolden Date: Thu, 29 May 2008 19:39:39 +0000 To: kde-commits Subject: KDE/kdelibs/kate/script Message-Id: <1212089979.515807.32662.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=121208999004860 SVN commit 814265 by zwabel: When the indentation script has produced exceptions, but the returned indentation value is valid, use it anyway(A warning that an exception has happened is still printed). Motivation: The indentation_c indent script produces an exception after using kdevelop for a while, but it keeps working. M +1 -1 kateindentscript.cpp --- trunk/KDE/kdelibs/kate/script/kateindentscript.cpp #814264:814265 @@ -65,7 +65,7 @@ // error during the calling? if(m_engine->hasUncaughtException()) { displayBacktrace(result, "Error calling indent()"); - return -2; + m_engine->clearExceptions(); } int indentAmount = result.toInt32 (); if(m_engine->hasUncaughtException()) {