[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master fad1828 03/13: Explicitly assert some implici
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master fad1828 03/13: Explicitly assert some implicit assumptions |
Date: |
Tue, 8 May 2018 19:51:05 -0400 (EDT) |
branch: master
commit fad1828b75b1ce857da9ced1bf24c7b7156b3591
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Explicitly assert some implicit assumptions
See output_header() discussion here:
https://lists.nongnu.org/archive/html/lmi/2018-04/msg00135.html
---
wx_table_generator.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index b822816..4c24db4 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -768,6 +768,12 @@ void wx_table_generator::output_header
if(use_bold_headers_)
{
header_font_setter.Set(get_header_font());
+ // The distance from the font's descender line to its ascender
+ // line must not exceed the distance between lines.
+ LMI_ASSERT(dc_.GetCharHeight() <= row_height());
+ // do_output_values(), called below, uses a cached char_height_
+ // that is assumed not to differ from the bold GetCharHeight().
+ LMI_ASSERT(dc_.GetCharHeight() == char_height_);
}
// Split headers in single lines and fill up the entire columns*lines 2D
- [lmi-commits] [lmi] master updated (05e57fd -> 0c90de6), Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master 1480161 06/13: Add more detail to a comment, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master bb36d25 02/13: Assert that measure-only and render passes have the same side effects, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master 86ed6fe 01/13: Correct a comment, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master fad1828 03/13: Explicitly assert some implicit assumptions,
Greg Chicares <=
- [lmi-commits] [lmi] master b0c3633 05/13: Improve documentation, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master d5096d9 11/13: Paste out to spreadsheet: show dates as YYYYMMDD, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master d92a865 09/13: Grow only multiline "Comments" control, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master a5d5799 10/13: Widen all date-picker controls, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master 274f13e 04/13: Assert that the clipping width is nonnegative, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master 6ac7331 07/13: Use a dummy name for a dummy variable, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master 0c90de6 13/13: Designate release candidate 20180508T2349Z, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master 7320efb 08/13: Adjust layout of certain controls, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master fb91253 12/13: Revert "Store the last selected page of MvcController persistently", Greg Chicares, 2018/05/08