[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f5651d1 8/9: Prevent save() from being called
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master f5651d1 8/9: Prevent save() from being called twice |
Date: |
Wed, 4 Apr 2018 21:27:38 -0400 (EDT) |
branch: master
commit f5651d19c9f95ecb50a51b87f32343f660c29738
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Prevent save() from being called twice
---
pdf_writer_wx.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pdf_writer_wx.cpp b/pdf_writer_wx.cpp
index eef0e31..d9b2474 100644
--- a/pdf_writer_wx.cpp
+++ b/pdf_writer_wx.cpp
@@ -262,8 +262,8 @@ int pdf_writer_wx::get_page_bottom() const
void pdf_writer_wx::save() &&
{
+ LMI_ASSERT(!save_has_been_called_);
pdf_dc_.EndDoc();
-
save_has_been_called_ = true;
}
- [lmi-commits] [lmi] master updated (d9f9215 -> f4580cf), Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master 035e5a0 2/9: Simplify, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master afdbbeb 6/9: Consolidate commentary, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master 38df10a 4/9: Simplify diagnostics, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master 6586cab 1/9: Simplify, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master ecd1362 3/9: Shorten diagnostics, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master 783f4dd 5/9: Consolidate and revise documentation, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master f4580cf 9/9: Don't ref-qualify save(), Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master 5d225f5 7/9: Move commentary to point of member-function definition, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master f5651d1 8/9: Prevent save() from being called twice,
Greg Chicares <=