diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-22 12:41:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-22 13:11:34 +0100 |
commit | e8204fe4cb382176bd9a803f4e7a21e5f69ce2db (patch) | |
tree | b462a3610da26d739ebfc4782947740292b2657a /sw/source/ui/uno | |
parent | 1a2c28cf0dabd1b84d7130186f562de82cb1ca82 (diff) |
Resolves: ooo#40683 support word for windows 1
via the standard .doc binary filter
Change-Id: I0284fa815e6874d7d59ad1ad8ede4482d2e266a4
Diffstat (limited to 'sw/source/ui/uno')
-rw-r--r-- | sw/source/ui/uno/swdetect.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/ui/uno/swdetect.cxx b/sw/source/ui/uno/swdetect.cxx index c37e9fcfe22e..eff1d64ea0b9 100644 --- a/sw/source/ui/uno/swdetect.cxx +++ b/sw/source/ui/uno/swdetect.cxx @@ -73,8 +73,10 @@ OUString SAL_CALL SwFilterDetect::detect( Sequence< PropertyValue >& lDescriptor if ( pInStrm->Read( nBuffer, nBufSize ) < nBufSize ) return OUString(); - bIsDetected = ( nBuffer[0] == 0xDB && nBuffer[1] == 0xA5 && nBuffer[2] == 0x2D ) // WinWord 2.0 file - || ( nBuffer[0] == 0xDC && nBuffer[1] == 0xA5 && nBuffer[2] == 0x65 ); // WinWord 6.0/95, as a single stream file + bIsDetected = (nBuffer[0] == 0x9B && nBuffer[1] == 0xA5 && nBuffer[2] == 0x21) // WinWord 1 + || (nBuffer[0] == 0x9C && nBuffer[1] == 0xA5 && nBuffer[2] == 0x21) // PMWord 1 + || (nBuffer[0] == 0xDB && nBuffer[1] == 0xA5 && nBuffer[2] == 0x2D) // WinWord 2 + || (nBuffer[0] == 0xDC && nBuffer[1] == 0xA5 && nBuffer[2] == 0x65); // WinWord 6.0/95, as a single stream file } else { |