lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 4d92a38 6/9: Allow empty strings to be pasted


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 4d92a38 6/9: Allow empty strings to be pasted into a census
Date: Wed, 15 Feb 2017 20:26:59 -0500 (EST)

branch: master
commit 4d92a3834ab61ee5787d7a3d7b7f4a7b5c89907d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Allow empty strings to be pasted into a census
    
    It is useful to paste a "Comments" column that consists mostly of
    empty strings.
    
    The original code is commented out rather than removed so that this
    change can be tested thoroughly before release.
---
 census_view.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/census_view.cpp b/census_view.cpp
index 7414f23..d752c32 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -1686,6 +1686,7 @@ void CensusView::UponPasteCensus(wxCommandEvent&)
 
         while(std::getline(iss_line, token, '\t'))
             {
+#if 0 // expunge soon?
             static std::string const space(" ");
             if(std::string::npos == token.find_first_not_of(space))
                 {
@@ -1703,6 +1704,7 @@ void CensusView::UponPasteCensus(wxCommandEvent&)
 //   http://savannah.nongnu.org/bugs/?20240
                 fatal_error() << "Invalid input." << LMI_FLUSH;
                 }
+#endif // 0
             values.push_back(token);
             }
 



reply via email to

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