changeset 521:5ebcf099dab0

* truncate long prefix
author Chris Cannam
date Thu, 11 Dec 2008 15:19:24 +0000
parents e340b2fb9471
children 76f6971c8433
files base/ProgressPrinter.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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()