From: <j-...@us...> - 2009-11-29 22:48:38
|
Revision: 4156 http://kdenlive.svn.sourceforge.net/kdenlive/?rev=4156&view=rev Author: j-b-m Date: 2009-11-29 22:48:30 +0000 (Sun, 29 Nov 2009) Log Message: ----------- fix keyframe insertion Modified Paths: -------------- trunk/kdenlive/src/keyframeedit.cpp Modified: trunk/kdenlive/src/keyframeedit.cpp =================================================================== --- trunk/kdenlive/src/keyframeedit.cpp 2009-11-29 22:38:26 UTC (rev 4155) +++ trunk/kdenlive/src/keyframeedit.cpp 2009-11-29 22:48:30 UTC (rev 4156) @@ -170,8 +170,10 @@ keyframe_list->insertRow(newrow); keyframe_list->setVerticalHeaderItem(newrow, new QTableWidgetItem(m_timecode.getTimecodeFromFrames(result))); - keyframe_list->setItem(newrow, keyframe_list->currentColumn(), new QTableWidgetItem(item->text())); - keyframe_list->resizeRowToContents(newrow); + for (int i = 0; i < keyframe_list->columnCount(); i++) { + keyframe_list->setItem(newrow, i, new QTableWidgetItem(keyframe_list->item(item->row(), i)->text())); + } + //keyframe_list->resizeRowToContents(newrow); slotAdjustKeyframeInfo(); keyframe_list->blockSignals(false); slotGenerateParams(newrow, keyframe_list->currentColumn()); @@ -209,7 +211,7 @@ QString keyframes; for (int i = 0; i < keyframe_list->rowCount(); i++) { - keyframes.append(QString::number(m_timecode.getFrameCount(keyframe_list->verticalHeaderItem(i)->text())) + ':' + keyframe_list->item(i, column)->text() + ';'); + if (keyframe_list->item(i, column)) keyframes.append(QString::number(m_timecode.getFrameCount(keyframe_list->verticalHeaderItem(i)->text())) + ':' + keyframe_list->item(i, column)->text() + ';'); } m_params[column].setAttribute("keyframes", keyframes); emit parameterChanged(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |