[Libreoffice-commits] core.git: vcl/source

Radek Doulik rodo at novell.com
Mon Feb 25 03:54:55 PST 2013


 vcl/source/filter/wmf/winwmf.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 199f0edc93e25ff8144f16599184049573154232
Author: Radek Doulik <rodo at novell.com>
Date:   Mon Feb 25 12:53:56 2013 +0100

    allow WMF's with missing EOF record
    
    Change-Id: Ifb38336863979890f1bc3de779d82454b4a5c185

diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx
index ecdf04d..97a705b 100644
--- a/vcl/source/filter/wmf/winwmf.cxx
+++ b/vcl/source/filter/wmf/winwmf.cxx
@@ -1188,7 +1188,7 @@ void WMFReader::ReadWMF()
                   || pWMF->IsEof()
                   )
                 {
-                    if( pWMF->IsEof() )
+                    if( pWMF->IsEof() && nPos != nEndPos)
                         pWMF->SetError( SVSTREAM_FILEFORMAT_ERROR );
 
                     break;


More information about the Libreoffice-commits mailing list