Summary: | Multiple formulas in one paragraph confuse Kopete | ||
---|---|---|---|
Product: | [Unmaintained] kopete | Reporter: | Ingo Klöcker <kloecker> |
Component: | Latex Plugin | Assignee: | Kopete Developers <kopete-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 0.9.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | the proposed fix |
Description
Ingo Klöcker
2004-09-03 12:01:36 UTC
No, it was a bug in the LaTeX plugin. The attached patch fixes the problem and also fixes the infinite loop Olivier worked around by adding a loop count. The fix is basically - rg.search(messageText, pos); + pos = rg.search(messageText, pos); The rest just removes some code which is obsolete, i.e. the count<30 workaround and the nonsensical if ( !match.length() ) because match will never have zero length if pos >= 0. Created attachment 7401 [details]
the proposed fix
I tested your patch, and seems to work verry fine. Thank you. If you have a CVS account, feel free to commit. If not, I can do it. I've committed the fix to the 3.3 branch and to HEAD. |