comparison framework/MainWindowBase.cpp @ 268:1f8251b3ad5d tonioni

fix to work with FlexiNote...
author matthiasm
date Tue, 26 Mar 2013 16:56:39 +0000
parents 98993f4904df
children 6bbf62a333c1
comparison
equal deleted inserted replaced
267:98993f4904df 268:1f8251b3ad5d
1010 if (c) { 1010 if (c) {
1011 CommandHistory::getInstance()->addCommand(c, false); 1011 CommandHistory::getInstance()->addCommand(c, false);
1012 return; 1012 return;
1013 } 1013 }
1014 1014
1015 FlexiNoteModel *nm = dynamic_cast<FlexiNoteModel *>(layer->getModel()); 1015 FlexiNoteModel *fnm = dynamic_cast<FlexiNoteModel *>(layer->getModel());
1016 if (nm) { 1016 if (fnm) {
1017 FlexiNoteModel::Point point(alignedStart, 1017 FlexiNoteModel::Point point(alignedStart,
1018 rm->getValueMinimum(), 1018 rm->getValueMinimum(),
1019 alignedDuration, 1019 alignedDuration,
1020 1.f, 1020 1.f,
1021 ""); 1021 "");
1022 FlexiNoteModel::EditCommand *command = 1022 FlexiNoteModel::EditCommand *command =
1023 new FlexiNoteModel::EditCommand(nm, tr("Add Point")); 1023 new FlexiNoteModel::EditCommand(fnm, tr("Add Point"));
1024 command->addPoint(point); 1024 command->addPoint(point);
1025 command->setName(name); 1025 command->setName(name);
1026 c = command->finish(); 1026 c = command->finish();
1027 } 1027 }
1028 1028