[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 005b3eb 06/15: Replace pdf_writer_wx::get_pag
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 005b3eb 06/15: Replace pdf_writer_wx::get_page_height() with get_total_height() |
Date: |
Fri, 27 Jul 2018 17:23:16 -0400 (EDT) |
branch: master
commit 005b3eb44e3878ed32547321fc1fcfd930153d38
Author: Vadim Zeitlin <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Replace pdf_writer_wx::get_page_height() with get_total_height()
The old function wasn't ever used. The new one isn't used neither yet,
but will be used soon in the pagination code.
---
pdf_writer_wx.cpp | 4 ++--
pdf_writer_wx.hpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pdf_writer_wx.cpp b/pdf_writer_wx.cpp
index e515bea..f394467 100644
--- a/pdf_writer_wx.cpp
+++ b/pdf_writer_wx.cpp
@@ -240,9 +240,9 @@ int pdf_writer_wx::get_total_width() const
return total_page_size_.x;
}
-int pdf_writer_wx::get_page_height() const
+int pdf_writer_wx::get_total_height() const
{
- return total_page_size_.y - 2 * vert_margin;
+ return total_page_size_.y;
}
int pdf_writer_wx::get_page_bottom() const
diff --git a/pdf_writer_wx.hpp b/pdf_writer_wx.hpp
index 3013024..d9ecf00 100644
--- a/pdf_writer_wx.hpp
+++ b/pdf_writer_wx.hpp
@@ -90,7 +90,7 @@ class pdf_writer_wx
int get_vert_margin() const;
int get_page_width() const;
int get_total_width() const;
- int get_page_height() const;
+ int get_total_height() const;
int get_page_bottom() const;
private:
- [lmi-commits] [lmi] master updated (caaecd8 -> 12d84c9), Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master 37e9b0b 01/15: Update to wxWidgets v3.1.1-319-g9daf5bec98 snapshot, Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master 6465704 04/15: Restore the use of wxDCClipper in PDF table generation code, Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master a8d5e26 08/15: Look for image files referenced in templates under data directory, Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master 005b3eb 06/15: Replace pdf_writer_wx::get_page_height() with get_total_height(),
Greg Chicares <=
- [lmi-commits] [lmi] master 28e3c42 11/15: Remove workarounds for wx 3.1.1 warnings not relevant any more, Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master b6b6827 03/15: Do call EndPage() in PDF generation code, Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master a86d90a 02/15: Use more recent wxPdfDocument fixing the text origin bug, Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master 554eb23 13/15: Forbid page breaks inside paragraphs in the illustrations, Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master 271db22 14/15: Fix over eager assert in pdf_writer_wx::output_html(), Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master 12d84c9 15/15: Fix regression in font sizes used for the group quotes PDF, Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master 2bd38fa 12/15: Use standard <img> tag instead of <scaled_image> in templates, Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master 4cfcfe4 07/15: Refactor: remove render_page_template() helper function, Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master e821acd 05/15: Require specifying font sizes when using pdf_writer_wx, Greg Chicares, 2018/07/27
- [lmi-commits] [lmi] master c56a67f 09/15: Implement and use simple HTML output pagination, Greg Chicares, 2018/07/27