[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [5030] Fix defect introduced 20100704T1645Z
From: |
Greg Chicares |
Subject: |
[lmi-commits] [5030] Fix defect introduced 20100704T1645Z |
Date: |
Sun, 11 Jul 2010 14:21:51 +0000 |
Revision: 5030
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5030
Author: chicares
Date: 2010-07-11 14:21:50 +0000 (Sun, 11 Jul 2010)
Log Message:
-----------
Fix defect introduced 20100704T1645Z
Modified Paths:
--------------
lmi/trunk/input_sequence_entry.cpp
Modified: lmi/trunk/input_sequence_entry.cpp
===================================================================
--- lmi/trunk/input_sequence_entry.cpp 2010-07-11 14:20:20 UTC (rev 5029)
+++ lmi/trunk/input_sequence_entry.cpp 2010-07-11 14:21:50 UTC (rev 5030)
@@ -113,6 +113,19 @@
}
else
{
+ if(e_maturity == value())
+ {
+ // "until maturity" is selected, but it's no longer allowed.
+ // Replace it with arbitrary other value temporarily; we pick
+ // e_retirement, because it (like e_maturity) doesn't have numeric
+ // argument.
+ //
+ // This is done only to preserve the invariant that
+ // DurationModeChoice always has a value selected; if this happens,
+ // it will be replaced by a more appropriate choice by other UI
+ // code (see UponAddRow).
+ value(e_retirement);
+ }
Delete(duration_mode_choices - 1);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [5030] Fix defect introduced 20100704T1645Z,
Greg Chicares <=