| Summary: | Crash on entering doxygen comment on editing cpp files | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Stefan Nikolaus <stefan.nikolaus> |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | esigra, kde |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Stefan Nikolaus
2006-07-11 15:36:27 UTC
This was fixed with one of the patches for bug 129263 or bug 129580. Apparently, the respective fixes were committed in a modified form. SVN commit 561299 by kling:
Don't pass (int)-1 to KateTextLine::stringAtPos(), it chokes on that.
This is fixed in KDE4 Kate, where all unsigned ints are made signed.
BUG: 130619
M +2 -1 kateautoindent.cpp
--- branches/KDE/3.5/kdelibs/kate/part/kateautoindent.cpp #561298:561299
@@ -568,8 +568,9 @@
QString filler = tabString (indent);
bool doxygenAutoInsert = doc->config()->configFlags() & KateDocumentConfig::cfDoxygenAutoTyping;
+
if ( doxygenAutoInsert &&
- (!textLine->stringAtPos(first, "*/") && !textLine->stringAtPos(first, "*")))
+ ((first < 0) || (!textLine->stringAtPos(first, "*/") && !textLine->stringAtPos(first, "*"))))
{
filler = filler + " * ";
}
*** Bug 131078 has been marked as a duplicate of this bug. *** |