X-Git-Url: https://git.sesse.net/?p=kdenlive;a=blobdiff_plain;f=src%2Fcustomtrackview.cpp;h=51e119a147b801d3528f5f8551047927e7227ddf;hp=8786d494a07d09a914759dd1b2429f2a0f32f78e;hb=1b28a1f6120bc1c38750aab05c059bc8210b6418;hpb=234d7fe2828b8e82253548e32081576fc56cbb80 diff --git a/src/customtrackview.cpp b/src/customtrackview.cpp index 8786d494..51e119a1 100644 --- a/src/customtrackview.cpp +++ b/src/customtrackview.cpp @@ -6271,13 +6271,13 @@ void CustomTrackView::adjustKeyfames(GenTime oldstart, GenTime newstart, GenTime QStringList keys = e.attribute("keyframes").split(';', QString::SkipEmptyParts); QStringList newKeyFrames; foreach(const QString &str, keys) { - int pos = str.section(':', 0, 0).toInt(); - double val = str.section(':', 1, 1).toDouble(); + int pos = str.section('=', 0, 0).toInt(); + double val = str.section('=', 1, 1).toDouble(); pos += diff; if (pos > max) { - newKeyFrames.append(QString::number(max) + ':' + locale.toString(val)); + newKeyFrames.append(QString::number(max) + '=' + locale.toString(val)); break; - } else newKeyFrames.append(QString::number(pos) + ':' + locale.toString(val)); + } else newKeyFrames.append(QString::number(pos) + '=' + locale.toString(val)); } //kDebug()<<"ORIGIN: "< 1) result.append(key.section(':', 0, 1)); + if (key.count('=') > 1) result.append(key.section('=', 0, 1)); else result.append(key); result.append(';'); } } else { foreach(QString key, keyframeList) { - result.append(key.section(':', 0, 0)); + result.append(key.section('=', 0, 0)); result.append(';'); } } } else if (ui.import_size->isChecked()) { foreach(QString key, keyframeList) { - result.append(key.section(':', 1, 1)); + result.append(key.section('=', 1, 1)); result.append(';'); } }