[Libreoffice-commits] .: Branch 'feature/pdf-signing' - vcl/source

Gökcen Eraslan gokcen at kemper.freedesktop.org
Wed Jun 20 05:12:32 PDT 2012


 vcl/source/gdi/pdfwriter_impl.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4ef8a04b6a11bed9f83685242672492c6d723d9d
Author: Gökçen Eraslan <gokcen.eraslan at gmail.com>
Date:   Wed Jun 20 15:10:48 2012 +0300

    Add a fake appearance dictionary to Sig object.
    
    Change-Id: Ibd8f6232b0121de6951e27ec82851ea719a2ddc2

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 9e0dbf9..cc65911 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -11872,6 +11872,8 @@ sal_Int32 PDFWriterImpl::createControl( const PDFWriter::AnyWidget& rControl, sa
         rNewWidget.m_aValue = OUString::valueOf( m_nSignatureObject );
         rNewWidget.m_aValue += OUString(" 0 R");
         //createDefaultSignatureAppearance( rNewWidget, rSig );
+        // let's add a fake appearance
+        rNewWidget.m_aAppearances[ "N" ][ "Standard" ] = new SvMemoryStream();
     }
 
     // convert to default user space now, since the mapmode may change


More information about the Libreoffice-commits mailing list