- Scrollbars for the console (use View2D functions)
[blender-staging.git] / source / blender / blenkernel / intern / report.c
index 6564329ef8298ad5284223583504d44411a5dbb4..3e3dd4b0af0251904a7c9c27f728d24484600aac 100644 (file)
@@ -102,7 +102,7 @@ void BKE_report(ReportList *reports, ReportType type, const char *message)
                len= strlen(message);
                report->message= MEM_callocN(sizeof(char)*(len+1), "ReportMessage");
                memcpy(report->message, message, sizeof(char)*(len+1));
-               
+               report->len= len;
                BLI_addtail(&reports->list, report);
        }
 }
@@ -129,7 +129,7 @@ void BKE_reportf(ReportList *reports, ReportType type, const char *format, ...)
                va_end(args);
 
                report->message= BLI_dynstr_get_cstring(ds);
-
+               report->len= BLI_dynstr_get_len(ds);
                BLI_dynstr_free(ds);
 
                report->type= type;
@@ -155,6 +155,7 @@ void BKE_reports_prepend(ReportList *reports, const char *prepend)
                MEM_freeN(report->message);
 
                report->message= BLI_dynstr_get_cstring(ds);
+               report->len= BLI_dynstr_get_len(ds);
 
                BLI_dynstr_free(ds);
        }
@@ -179,6 +180,7 @@ void BKE_reports_prependf(ReportList *reports, const char *prepend, ...)
                MEM_freeN(report->message);
 
                report->message= BLI_dynstr_get_cstring(ds);
+               report->len= BLI_dynstr_get_len(ds);
 
                BLI_dynstr_free(ds);
        }