lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [5239] After deletion, select one cell (VS)


From: Greg Chicares
Subject: [lmi-commits] [5239] After deletion, select one cell (VS)
Date: Thu, 11 Aug 2011 09:53:32 +0000

Revision: 5239
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5239
Author:   chicares
Date:     2011-08-11 09:53:32 +0000 (Thu, 11 Aug 2011)
Log Message:
-----------
After deletion, select one cell (VS)

Modified Paths:
--------------
    lmi/trunk/census_view.cpp

Modified: lmi/trunk/census_view.cpp
===================================================================
--- lmi/trunk/census_view.cpp   2011-08-11 09:36:52 UTC (rev 5238)
+++ lmi/trunk/census_view.cpp   2011-08-11 09:53:32 UTC (rev 5239)
@@ -944,6 +944,12 @@
     for(unsigned int j = erasures.front(); j < cell_parms().size(); ++j)
         list_model_->RowValueChanged(j, CensusViewDataViewModel::Col_CellNum);
 
+    unsigned int const newsel = std::min
+        (static_cast<unsigned int>(erasures.front())
+        ,cell_parms().size() - 1
+        );
+    list_window_->Select(list_model_->GetItem(newsel));
+
     Update();
     document().Modify(true);
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]