# HG changeset patch # User matthiasm # Date 1364316999 0 # Node ID 1f8251b3ad5d6f43c50db729e2a5e721be7a873d # Parent 98993f4904df1fce7cbf1d7e080ae71494df3155 fix to work with FlexiNote... diff -r 98993f4904df -r 1f8251b3ad5d framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Tue Mar 26 14:47:08 2013 +0000 +++ b/framework/MainWindowBase.cpp Tue Mar 26 16:56:39 2013 +0000 @@ -1012,15 +1012,15 @@ return; } - FlexiNoteModel *nm = dynamic_cast<FlexiNoteModel *>(layer->getModel()); - if (nm) { + FlexiNoteModel *fnm = dynamic_cast<FlexiNoteModel *>(layer->getModel()); + if (fnm) { FlexiNoteModel::Point point(alignedStart, rm->getValueMinimum(), alignedDuration, 1.f, ""); FlexiNoteModel::EditCommand *command = - new FlexiNoteModel::EditCommand(nm, tr("Add Point")); + new FlexiNoteModel::EditCommand(fnm, tr("Add Point")); command->addPoint(point); command->setName(name); c = command->finish();