From 36e42c0bc094231cb80157a871862c76d6a2d03a Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Sun, 30 Jun 2013 00:11:17 +0200 Subject: fdo#66288: fix MetaAction::Read() This is "collateral damage" from the actual bug, and is broken since CVS initial import (which likely means that in practice no bare MetaActions exist), but the MetaAction::Read() must not read the type from the stream since MetaAction::ReadMetaAction() has already done that! Change-Id: I9ab06ec3112c1eefb86ab70ddfa2f588af257b88 --- vcl/source/gdi/metaact.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx index b8725ebf86f4..a522e051a5d9 100644 --- a/vcl/source/gdi/metaact.cxx +++ b/vcl/source/gdi/metaact.cxx @@ -144,9 +144,9 @@ void MetaAction::Write( SvStream& rOStm, ImplMetaWriteData* ) // ------------------------------------------------------------------------ -void MetaAction::Read( SvStream& rIStm, ImplMetaReadData* ) +void MetaAction::Read( SvStream&, ImplMetaReadData* ) { - rIStm >> mnType; + // DO NOT read mnType - ReadMetaAction already did that! } // ------------------------------------------------------------------------ -- cgit