OSDN Git Service

After creation of a pi anchor, only the newly created anchor atom gets selected....
authortoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Wed, 24 Jul 2013 16:19:41 +0000 (16:19 +0000)
committertoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Wed, 24 Jul 2013 16:19:41 +0000 (16:19 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@371 a2be9bc6-48de-4e38-9406-05402d4bc13c

wxSources/MyDocument.cpp

index b0e7645..16089c1 100755 (executable)
@@ -638,13 +638,14 @@ MyDocument::OnCreatePiAnchor(wxCommandEvent &event)
                        ig, &idx) != 0)
                return;
        MainViewCallback_selectTable(mview, kMainViewAtomTableIndex);
-       ig2 = IntGroupNewFromIntGroup(ig);
-       IntGroupAdd(ig2, idx, 1);
+//     ig2 = IntGroupNewFromIntGroup(ig);
+//     IntGroupAdd(ig2, idx, 1);
+       ig2 = IntGroupNewWithPoints(idx, 1, -1);
        MoleculeSetSelection(mol, ig2);
        IntGroupRelease(ig2);
        MainView_refreshTable(mview);
-       row = MainView_indexToTableRow(mview, idx);
-       MainViewCallback_startEditText(mview, row, 1);
+//     row = MainView_indexToTableRow(mview, idx);
+//     MainViewCallback_startEditText(mview, row, 1);
 }
 
 void