+ } else if (type == "geometry") {
+ Geometryval *geom = ((Geometryval*)valueItems[paramName+"geometry"]);
+ namenode.item(i) = geom->getParamDesc();
+ } else if (type == "position") {
+ KRestrictedLine *line = ((Ui::Positionval_UI*)valueItems[paramName+"position"])->krestrictedline;
+ int pos = m_timecode.getFrameCount(line->text(), KdenliveSettings::project_fps());
+ if (params.attribute("id") == "fadein") {
+ pos += m_in;
+ if (pos > m_out) {
+ pos = m_out;
+ line->setText(m_timecode.getTimecodeFromFrames(pos));
+ }
+ } else if (params.attribute("id") == "fadeout") {
+ pos = m_out - (pos - m_in);
+ if (pos > m_out - m_in) {
+ pos = m_out - m_in;
+ line->setText(m_timecode.getTimecodeFromFrames(pos));
+ }
+ }
+ setValue = QString::number(pos);