Commit eb4a0018 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix 'Windows Mac linefeeds exchanged in codegeneration'.

BUG:174175
FIXED-IN:2.21.80 (KDE Applications 17.03.80)
parent 1e48acba
...@@ -222,10 +222,10 @@ void CodeGenerationPolicy::setLineEndingType (NewLineType type) ...@@ -222,10 +222,10 @@ void CodeGenerationPolicy::setLineEndingType (NewLineType type)
{ {
Settings::optionState().codeGenerationState.lineEndingType = type; Settings::optionState().codeGenerationState.lineEndingType = type;
switch (Settings::optionState().codeGenerationState.lineEndingType) { switch (Settings::optionState().codeGenerationState.lineEndingType) {
case MAC: case DOS:
m_lineEndingChars = QString(QLatin1String("\r\n")); m_lineEndingChars = QString(QLatin1String("\r\n"));
break; break;
case DOS: case MAC:
m_lineEndingChars = QString(QLatin1String("\r")); m_lineEndingChars = QString(QLatin1String("\r"));
break; break;
case UNIX: case UNIX:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment