summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rtfgen.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rtfgen.cpp b/src/rtfgen.cpp
index 76059a1..cff0ce4 100644
--- a/src/rtfgen.cpp
+++ b/src/rtfgen.cpp
@@ -670,7 +670,10 @@ void RTFGenerator::beginRTFDocument()
ASSERT(index < array.size());
}
if (array.at(index) != 0)
- msg("Style '%s' redefines \\s%d.\n", iter.currentKey().data(), index);
+ {
+ QCString key(iter.currentKey());
+ msg("Style '%s' redefines \\s%d.\n", key.data(), index);
+ }
array.at(index) = style;
}