1.1 --- a/mainwindow.cpp Thu Jan 15 00:52:35 2009 +0000
1.2 +++ b/mainwindow.cpp Tue Jan 20 15:23:16 2009 +0000
1.3 @@ -2870,7 +2870,7 @@
1.4 VymModel *m=currentModel();
1.5 if (m)
1.6 {
1.7 - BranchObj *bo=(BranchObj*)m->getSelection();
1.8 + BranchObj *bo=m->getSelectedBranch();
1.9 BranchObj *newbo=m->addNewBranch(0);
1.10
1.11 prevSelection=m->getSelectString(bo);
1.12 @@ -2897,7 +2897,7 @@
1.13 VymModel *m=currentModel();
1.14 if (m)
1.15 {
1.16 - BranchObj *bo=(BranchObj*)m->getSelection();
1.17 + BranchObj *bo=m->getSelectedBranch();
1.18 BranchObj *newbo=m->addNewBranchBefore();
1.19
1.20 if (newbo)
1.21 @@ -2919,7 +2919,7 @@
1.22 VymModel *m=currentModel();
1.23 if ( m)
1.24 {
1.25 - BranchObj *bo=(BranchObj*)m->getSelection();
1.26 + BranchObj *bo=m->getSelectedBranch();
1.27 BranchObj *newbo=m->addNewBranch (-1);
1.28
1.29 if (newbo)
1.30 @@ -2941,7 +2941,7 @@
1.31 VymModel *m=currentModel();
1.32 if (m)
1.33 {
1.34 - BranchObj *bo=(BranchObj*)m->getSelection();
1.35 + BranchObj *bo=m->getSelectedBranch();
1.36 BranchObj *newbo=m->addNewBranch (1);
1.37
1.38 if (newbo)
1.39 @@ -3405,7 +3405,7 @@
1.40 actionFilePrint->setEnabled (true);
1.41
1.42 // Selection
1.43 - selection=m->getSelection();
1.44 + selection=m->getSelectedLMO();
1.45
1.46 // Link style in context menu
1.47 switch (m->getMapLinkStyle())