[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);
}
- [lmi-commits] [lmi] master updated (0cfdd92 -> 59797a5), Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master a352f9e 2/9: Restore original facet get_table() implementation, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master da6c8c9 5/9: Do not treat tab as whitespace in UponPasteCensus(), Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master a16705a 4/9: Add a tab-is-not-ws facet, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 9a78453 7/9: Fix defect introduced 20160517T2303: tests not updated, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 1f9c757 8/9: Make certain unit tests more general, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 4d92a38 6/9: Allow empty strings to be pasted into a census,
Greg Chicares <=
- [lmi-commits] [lmi] master fc4057e 3/9: Genericize, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 59797a5 9/9: Make unit tests pastable into GUI, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 45a1834 1/9: Remove a dead usenet reference, Greg Chicares, 2017/02/15