Patch #3188 2011-07-18 19:13

wilk_gardariki

fix for Bug #18205
Download
3188-fix_for_Bug_18.patch (1.1 KB)
Category
Application::Bugfix
Status
Accepted
Close date
2011-08-13 09:14
Assigned to
mortenmacfly
Index: todolist.cpp
===================================================================
--- todolist.cpp    (revision 7287)
+++ todolist.cpp    (working copy)
@@ -394,7 +394,7 @@
             buffer << _T("// ");
             break;
         case tdctDoxygenC:
-            buffer << _T(" * ");
+            buffer << _T("/** ");
             break;
         case tdctDoxygenCPP:
             buffer << _T("/// ");
@@ -418,7 +418,8 @@
     buffer << _T("(") << dlg.GetUser() << _T("#") << priority << _T("#): ");
 
     wxString text = dlg.GetText();
-    if (CmtType != tdctC)
+    if (!( (CmtType == tdctC) ||
+           (CmtType == tdctDoxygenC) ) )
     {
         // make sure that multi-line notes, don't break the todo
         if (text.Replace(_T("\r\n"), _T("\\\r\n")) == 0)
@@ -434,7 +435,8 @@
     if (CmtType == tdctWarning || CmtType == tdctError)
         buffer << _T("");
 
-    else if (CmtType == tdctC)
+    else if ( (CmtType == tdctC) ||
+              (CmtType == tdctDoxygenC) )
         buffer << _T(" */");
 
     // add newline char(s), only if dlg.GetPosition() != tdpCurrent