Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > f56245b36fb217cb826b4585621bb690 > files > 40

kdelibs-3.5.4-26.el5_7.1.src.rpm

Index: kate/part/kateautoindent.cpp
===================================================================
--- kate/part/kateautoindent.cpp	(Revision 570245)
+++ kate/part/kateautoindent.cpp	(Revision 570246)
@@ -1494,7 +1494,7 @@
   bool doxygenAutoInsert = doc->config()->configFlags() & KateDocumentConfig::cfDoxygenAutoTyping;
 
   // starts with *: indent one space more to line up *s
-  if ( textLine->stringAtPos(first, "*") )
+  if ( first > 0 && textLine->stringAtPos(first, "*") )
     indent = indent + " ";
   // does not start with *: insert one if user wants that
   else if ( doxygenAutoInsert )