Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi all,

I am looking for 1 review to include the patch in 3-4 branch. It fixes
ppt export and possibly more areas where the code use SvGlobalName class
and < operator.

It is regression in "#i101100# strict-alias clean" changes.

The original code (before strict alias clean) was using beginning of
pImp->szData in comparison

-    else if( *(USHORT *)&pImp->szData[ 4 ] == *(USHORT *)&rObj.pImp->szData[ 4 ] )
-        return *(UINT32 *)pImp->szData < *(UINT32 *)rObj.pImp->szData;

The fix is here

http://cgit.freedesktop.org/libreoffice/libs-gui/commit/?id=345dc7961bc142f167a1b8e5f43f4439e8234f06

commit 345dc7961bc142f167a1b8e5f43f4439e8234f06
Author: Radek Doulik <rodo@novell.com>
Date:   Mon Jul 11 20:36:47 2011 +0200

    fix regression in SvGlobalName::operator <
    
     - it was comparing wrong parts and ommiting part of ID's, resulting
       in wrong results and thus ::std::map didn't work well with default
       less compare function of it's keys
     - fixes fdo#32709

Cheers
Radek



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.