summaryrefslogtreecommitdiff
path: root/tools/source/ref/globname.cxx
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2011-07-11 20:36:47 +0200
committerRadek Doulik <rodo@novell.com>2011-07-11 20:39:40 +0200
commita0b2a7cc6be1de9f19842dfb60695e3ac1615577 (patch)
treec736d6ed6cdc3de85138d4edcc815c91fecffe59 /tools/source/ref/globname.cxx
parent468de84e52821728cb46035f252fac57df3b334e (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/globname.cxx')
-rw-r--r--tools/source/ref/globname.cxx4
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;
}