diff options
author | Radek Doulik <rodo@novell.com> | 2011-07-11 20:36:47 +0200 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2011-07-11 20:39:40 +0200 |
commit | a0b2a7cc6be1de9f19842dfb60695e3ac1615577 (patch) | |
tree | c736d6ed6cdc3de85138d4edcc815c91fecffe59 /tools/source/ref | |
parent | 468de84e52821728cb46035f252fac57df3b334e (diff) |
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
Diffstat (limited to 'tools/source/ref')
-rw-r--r-- | tools/source/ref/globname.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/ref/globname.cxx b/tools/source/ref/globname.cxx index 5272023ce43e..e7f30b9d50df 100644 --- a/tools/source/ref/globname.cxx +++ b/tools/source/ref/globname.cxx @@ -210,10 +210,10 @@ sal_Bool SvGlobalName::operator < ( const SvGlobalName & rObj ) const else if( Data2_a == Data2_b ) { sal_uInt32 Data1_a; - memcpy(&Data1_a, pImp->szData+4, sizeof(sal_uInt32)); + memcpy(&Data1_a, pImp->szData, sizeof(sal_uInt32)); sal_uInt32 Data1_b; - memcpy(&Data1_b, rObj.pImp->szData+4, sizeof(sal_uInt32)); + memcpy(&Data1_b, rObj.pImp->szData, sizeof(sal_uInt32)); return Data1_a < Data1_b; } |