summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppdocumentationcommenthelper.cpp
diff options
context:
space:
mode:
authorLorenz Haas <lykurg@gmail.com>2015-02-09 20:06:27 +0100
committerLorenz Haas <lykurg@gmail.com>2015-02-27 18:18:49 +0000
commit88ee2bfb641c17ea5ad942558c9c9d40eb118a04 (patch)
tree5e99bf55109d709af399ceaf7387ad871e83da2d /src/plugins/cppeditor/cppdocumentationcommenthelper.cpp
parent0ef651240d7a3ad1c3160ec51f192973437f820f (diff)
downloadqt-creator-88ee2bfb641c17ea5ad942558c9c9d40eb118a04.tar.gz
CppEditor: Preserve indent during Doxygen continuation handling
Change-Id: I30bba610fbe03fbfd9bc987805c57df6035d1c36 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/plugins/cppeditor/cppdocumentationcommenthelper.cpp')
-rw-r--r--src/plugins/cppeditor/cppdocumentationcommenthelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppdocumentationcommenthelper.cpp b/src/plugins/cppeditor/cppdocumentationcommenthelper.cpp
index 63ddc929ed..37df46a455 100644
--- a/src/plugins/cppeditor/cppdocumentationcommenthelper.cpp
+++ b/src/plugins/cppeditor/cppdocumentationcommenthelper.cpp
@@ -176,7 +176,7 @@ bool handleDoxygenCppStyleContinuation(QTextCursor &cursor)
return false;
QString newLine(QLatin1Char('\n'));
- newLine.append(QString(offset, QLatin1Char(' '))); // indent correctly
+ newLine.append(text.left(offset)); // indent correctly
newLine.append(commentMarker);
newLine.append(QLatin1Char(' '));