diff options
author | Noel Power <noel.power@novell.com> | 2012-02-16 10:34:59 +0000 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-02-16 10:36:51 +0000 |
commit | 2174d4d44eeb83378f76ea34086b8a1989b70b76 (patch) | |
tree | 4d0e36467a5cb182c29f29f429c6a40cc9a11704 /oox | |
parent | d294b52d8def55964cd34e02dc8b2c2319fb031b (diff) |
use stream name for module names when importing vba. fdo#46151 & bnc#747323
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ole/vbamodule.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx index d907051c8238..585f28d65e61 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; |