[Libreoffice-commits] .: oox/source

Noel Power noelp at kemper.freedesktop.org
Thu Feb 16 02:35:15 PST 2012


 oox/source/ole/vbamodule.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 2174d4d44eeb83378f76ea34086b8a1989b70b76
Author: Noel Power <noel.power at novell.com>
Date:   Thu Feb 16 10:34:59 2012 +0000

    use stream name for module names when importing vba. fdo#46151 & bnc#747323

diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx
index d907051..585f28d 100644
--- a/oox/source/ole/vbamodule.cxx
+++ b/oox/source/ole/vbamodule.cxx
@@ -156,6 +156,9 @@ void VbaModule::importDirRecords( BinaryInputStream& rDirStrm )
             break;
             case VBA_ID_MODULESTREAMNAME:
                 maStreamName = aRecStrm.readCharArrayUC( nRecSize, meTextEnc );
+                // Actually the stream name seems the best name to use
+                // the VBA_ID_MODULENAME name can sometimes be the wrong case
+                maName = maStreamName;
             break;
             case VBA_ID_MODULESTREAMNAMEUNICODE:
             break;


More information about the Libreoffice-commits mailing list