diff base/ProgressPrinter.cpp @ 521:5ebcf099dab0

* truncate long prefix
author Chris Cannam
date Thu, 11 Dec 2008 15:19:24 +0000
parents 77b4ce536d8f
children 076dcd2ce209
line wrap: on
line diff
--- a/base/ProgressPrinter.cpp	Thu Dec 11 15:18:10 2008 +0000
+++ b/base/ProgressPrinter.cpp	Thu Dec 11 15:19:24 2008 +0000
@@ -23,6 +23,9 @@
     m_lastProgress(0),
     m_definite(true)
 {
+    if (m_prefix.length() > 70) {
+        m_prefix = m_prefix.left(70) + "...";
+    }
 }
 
 ProgressPrinter::~ProgressPrinter()