Revision 814402

Go back to digest for 1st June 2008

Bug Fixes in KDE Base

Robin Pedersen committed changes in /trunk/KDE/kdelibs/kate/script:

Clear exceptions in the script engine before calling indent, instead of after. Don't ignore the error, and try to convert an exception to an integer.

This has the same effect as the previous fix by zwabel, except that it doesn't potentially hide errors.

Qt docs say that if calling indent throws an exception, the exception is returned.

It doesn't make any sense to try and return this value as an indent amount. The real problem was that exceptions from previous calls were not cleared, which is fixed now.

File Changes

Modified 3 files
  • /trunk/KDE/kdelibs/kate/script
  •   /kateindentscript.cpp
  •   /katescript.cpp
  •   /katescript.h
3 files changed in total