[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 99af657 2/5: Expunge experimental 'pyx=cut_ce
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 99af657 2/5: Expunge experimental 'pyx=cut_census' option |
Date: |
Tue, 10 Jul 2018 18:01:25 -0400 (EDT) |
branch: master
commit 99af657e5a0834b2171443e8e9a3022c54f72f58
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Expunge experimental 'pyx=cut_census' option
Palimpsestic paste seems preferable to the alternative here expunged.
Incidentally documented why 'UseDOB' in the not-directly-visible case
and class defaults is forced when a census is palimpsestically pasted.
---
census_view.cpp | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/census_view.cpp b/census_view.cpp
index 5d567d6..f410bd0 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -1844,13 +1844,13 @@ void CensusView::UponPasteCensus(wxCommandEvent&)
cell_parms ().swap(cells);
selection = 0;
}
- else if
- (configurable_settings::instance().census_paste_palimpsestically()
- || contains(global_settings::instance().pyx(), "cut_census")
- && cell_parms() == case_parms()
- )
+ else if(configurable_settings::instance().census_paste_palimpsestically())
{
cell_parms().swap(cells);
+ // Cells that were copied from lmi have DOB and not IssueAge,
+ // so pasting them back in sets UseDOB. Force UseDOB for case
+ // and class defaults to prevent showing a UseDOB column with
+ // each cell set to "Yes".
for(auto& j : case_parms ()) {j["UseDOB"] = "Yes";}
for(auto& j : class_parms()) {j["UseDOB"] = "Yes";}
selection = 0;
@@ -1884,14 +1884,6 @@ void CensusView::UponPasteCensus(wxCommandEvent&)
void CensusView::UponCopyCensus(wxCommandEvent&)
{
DoCopyCensus();
-
- if(contains(global_settings::instance().pyx(), "cut_census"))
- {
- cell_parms() = case_parms();
- list_model_->Reset(cell_parms().size());
- Update();
- list_window_->Select(list_model_->GetItem(0));
- }
}
/// Copy from census manager to clipboard and TSV file.