From: toshinagata1964 Date: Wed, 24 Jul 2013 16:19:41 +0000 (+0000) Subject: After creation of a pi anchor, only the newly created anchor atom gets selected.... X-Git-Tag: v1.0.2~267 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=058363bc275c9ecfe3b99d4e2b23adbbebb8d642;p=molby%2FMolby.git After creation of a pi anchor, only the newly created anchor atom gets selected. (Previously the atom name automatically gets entering the edit mode, but this behavior causes problem with undo.) git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@371 a2be9bc6-48de-4e38-9406-05402d4bc13c --- diff --git a/wxSources/MyDocument.cpp b/wxSources/MyDocument.cpp index b0e7645..16089c1 100755 --- a/wxSources/MyDocument.cpp +++ b/wxSources/MyDocument.cpp @@ -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