head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.6 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.4 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.2 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.1.0.2 pkgsrc-2011Q2-base:1.1; locks; strict; comment @# @; 1.2 date 2011.07.11.10.44.30; author drochner; state dead; branches; next 1.1; 1.1 date 2011.04.18.17.10.23; author drochner; state Exp; branches; next ; desc @@ 1.2 log @update to 0.1.8 changes: -UI improvements -new manpage -bugfixes -translation updates @ text @$NetBSD: patch-ba,v 1.1 2011/04/18 17:10:23 drochner Exp $ --- src/IDocument.cxx.orig 2009-02-28 21:00:35.000000000 +0000 +++ src/IDocument.cxx @@@@ -135,7 +135,7 @@@@ IDocument::IDocument () m_FindPage = 0; m_Format = NULL; m_Keywords = NULL; - m_Linearized = NULL; + m_Linearized = 0; m_ModifiedDate = NULL; m_PageCache = NULL; m_PageCacheAge = 0; @@@@ -164,7 +164,6 @@@@ IDocument::~IDocument () g_free (m_FileName); g_free (m_Format); g_free (m_Keywords); - g_free (m_Linearized); g_free (m_ModifiedDate); g_free (m_Password); g_free (m_Producer); @@@@ -755,11 +754,11 @@@@ IDocument::setFormat (gchar *format) const gchar * IDocument::getLinearized () { - if ( NULL == m_Linearized ) + if ( !m_Linearized ) { return "No"; } - return m_Linearized; + return "Yes"; } /// @@@@ -769,12 +768,9 @@@@ IDocument::getLinearized () /// otherwise. IDocument will free it. /// void -IDocument::setLinearized (gchar *linearized) +IDocument::setLinearized (gboolean linearized) { - gchar *oldLinearized = m_Linearized; - m_Linearized = g_strdup (linearized); - g_free (oldLinearized); - g_free (linearized); + m_Linearized = linearized; } /// @ 1.1 log @catch up with an API change in poppler, fixes crash if linearized PDFs are viewed, from IWAMOTO Toshihiro per PR pkg/44870 bump PKGREVISION @ text @d1 1 a1 1 $NetBSD$ @