[Podofo-svn] SF.net SVN: podofo:[1865] podofo/trunk/src/doc/PdfPainter.cpp
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
|
From: <mc...@us...> - 2018-01-14 09:51:31
|
Revision: 1865
http://sourceforge.net/p/podofo/code/1865
Author: mc-zyx
Date: 2018-01-14 09:51:29 +0000 (Sun, 14 Jan 2018)
Log Message:
-----------
Avoid throwing exception in PdfPainter::~PdfPainter() in non-DEBUG build
Modified Paths:
--------------
podofo/trunk/src/doc/PdfPainter.cpp
Modified: podofo/trunk/src/doc/PdfPainter.cpp
===================================================================
--- podofo/trunk/src/doc/PdfPainter.cpp 2017-12-31 13:18:44 UTC (rev 1864)
+++ podofo/trunk/src/doc/PdfPainter.cpp 2018-01-14 09:51:29 UTC (rev 1865)
@@ -146,7 +146,9 @@
PdfError::LogMessage( eLogSeverity_Error,
"PdfPainter::~PdfPainter(): FinishPage() has to be called after a page is completed!" );
+ #ifdef DEBUG
PODOFO_ASSERT( !m_pCanvas );
+ #endif
}
void PdfPainter::SetPage( PdfCanvas* pPage )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|