filter/source/msfilter/svdfppt.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit eafe89573f03ba638059bbe014fab1ed6d45d153 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Wed Dec 5 10:14:17 2018 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Dec 6 23:19:12 2018 +0100 Fix reading 16 bit millisecond value It had originally been read as 16 bit via >> in d2000efb31f864e912c6cf52760eea0e602b6893 "#i106421#: move msfilter to filter", then accidentally changed to be read as 32 bit via >> in 9830fd36dbdb72c79703b0c61efc027fba793c5a "date/time IDL datatypes incompatible change" (and later changed to be read as 32 bit explicitly via ReadUInt32 with 15535e32ddcfee451d4dbc9be9de0b8c9f9d78d4 "convert SvStream::operator>> methods to ReadXXX methods"). Change-Id: I5062e67a578d182a0df2726ab8d0bae465f154f3 Reviewed-on: https://gerrit.libreoffice.org/64604 Reviewed-by: Lionel Elie Mamane <lio...@mamane.lu> Tested-by: Jenkins (cherry picked from commit f84f5b0a0cdb82f444de572f9d8554a96056f874) Reviewed-on: https://gerrit.libreoffice.org/64636 diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index cc2fc42ad4a6..0f702e8f8531 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -2705,6 +2705,7 @@ void ImportComment10( SvxMSDffManager const & rMan, SvStream& rStCtrl, SdrPage* case PPT_PST_CommentAtom10 : { + sal_uInt16 millisec = 0; rStCtrl.ReadInt32( nIndex ) .ReadInt16( aDateTime.Year ) .ReadUInt16( aDateTime.Month ) @@ -2713,11 +2714,11 @@ void ImportComment10( SvxMSDffManager const & rMan, SvStream& rStCtrl, SdrPage* .ReadUInt16( aDateTime.Hours ) .ReadUInt16( aDateTime.Minutes ) .ReadUInt16( aDateTime.Seconds ) - .ReadUInt32( aDateTime.NanoSeconds ) + .ReadUInt16( millisec ) .ReadInt32( nPosX ) .ReadInt32( nPosY ); - aDateTime.NanoSeconds *= ::tools::Time::nanoPerMilli; + aDateTime.NanoSeconds = millisec * ::tools::Time::nanoPerMilli; } break; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits